{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments/53393116","id":53393116,"diff_hunk":"@@ -124,6 +124,17 @@ def curl_form_data(uri, form_data = [], options = {})\n       end\n     end\n \n+    def uri_status_code(uri)\n+      data = [\n+        '--request GET',\n+        '--silent',\n+        '--location',\n+        '--write-out \"%{http_code}\"',\n+        '--output /dev/null'\n+      ]\n+      Pkg::Util::Net.curl_form_data(uri, data)","path":"lib/packaging/util/net.rb","position":12,"original_position":12,"commit_id":"93c15affb6f9a37b0865bf8b06c912a4ccae6fe9","original_commit_id":"93c15affb6f9a37b0865bf8b06c912a4ccae6fe9","user":{"login":"underscorgan","id":553464,"avatar_url":"https://avatars.githubusercontent.com/u/553464?v=3","gravatar_id":"","url":"https://api.github.com/users/underscorgan","html_url":"https://github.com/underscorgan","followers_url":"https://api.github.com/users/underscorgan/followers","following_url":"https://api.github.com/users/underscorgan/following{/other_user}","gists_url":"https://api.github.com/users/underscorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorgan/subscriptions","organizations_url":"https://api.github.com/users/underscorgan/orgs","repos_url":"https://api.github.com/users/underscorgan/repos","events_url":"https://api.github.com/users/underscorgan/events{/privacy}","received_events_url":"https://api.github.com/users/underscorgan/received_events","type":"User","site_admin":false},"body":"it was already there, so may as well reuse it :)","created_at":"2016-02-18T22:26:25Z","updated_at":"2016-02-18T22:26:25Z","html_url":"https://github.com/puppetlabs/packaging/pull/504#discussion_r53393116","pull_request_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/504","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments/53393116"},"html":{"href":"https://github.com/puppetlabs/packaging/pull/504#discussion_r53393116"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/packaging/pulls/504","id":59584713,"html_url":"https://github.com/puppetlabs/packaging/pull/504","diff_url":"https://github.com/puppetlabs/packaging/pull/504.diff","patch_url":"https://github.com/puppetlabs/packaging/pull/504.patch","issue_url":"https://api.github.com/repos/puppetlabs/packaging/issues/504","number":504,"state":"open","locked":false,"title":"(RE-5817) Add foss-only mode","user":{"login":"underscorgan","id":553464,"avatar_url":"https://avatars.githubusercontent.com/u/553464?v=3","gravatar_id":"","url":"https://api.github.com/users/underscorgan","html_url":"https://github.com/underscorgan","followers_url":"https://api.github.com/users/underscorgan/followers","following_url":"https://api.github.com/users/underscorgan/following{/other_user}","gists_url":"https://api.github.com/users/underscorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorgan/subscriptions","organizations_url":"https://api.github.com/users/underscorgan/orgs","repos_url":"https://api.github.com/users/underscorgan/repos","events_url":"https://api.github.com/users/underscorgan/events{/privacy}","received_events_url":"https://api.github.com/users/underscorgan/received_events","type":"User","site_admin":false},"body":"This updates the retrieve jenkins task to only fetch specified platforms\r\nif FOSS_ONLY is set to true. It will default to using foss_platforms if\r\nspecified, but that can be overwritten with the FOSS_PLATFORMS\r\nenvironment variable which should be a space-separated list of\r\nplatform-tags.","created_at":"2016-02-17T01:46:20Z","updated_at":"2016-02-18T22:26:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f7758f999b9afcd9f86b2ee3dfee9a7eb1d7249","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/504/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/504/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/packaging/issues/504/comments","statuses_url":"https://api.github.com/repos/puppetlabs/packaging/statuses/93c15affb6f9a37b0865bf8b06c912a4ccae6fe9","head":{"label":"underscorgan:tickets/master/re-5817-foss-only","ref":"tickets/master/re-5817-foss-only","sha":"93c15affb6f9a37b0865bf8b06c912a4ccae6fe9","user":{"login":"underscorgan","id":553464,"avatar_url":"https://avatars.githubusercontent.com/u/553464?v=3","gravatar_id":"","url":"https://api.github.com/users/underscorgan","html_url":"https://github.com/underscorgan","followers_url":"https://api.github.com/users/underscorgan/followers","following_url":"https://api.github.com/users/underscorgan/following{/other_user}","gists_url":"https://api.github.com/users/underscorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorgan/subscriptions","organizations_url":"https://api.github.com/users/underscorgan/orgs","repos_url":"https://api.github.com/users/underscorgan/repos","events_url":"https://api.github.com/users/underscorgan/events{/privacy}","received_events_url":"https://api.github.com/users/underscorgan/received_events","type":"User","site_admin":false},"repo":{"id":43508812,"name":"packaging","full_name":"underscorgan/packaging","owner":{"login":"underscorgan","id":553464,"avatar_url":"https://avatars.githubusercontent.com/u/553464?v=3","gravatar_id":"","url":"https://api.github.com/users/underscorgan","html_url":"https://github.com/underscorgan","followers_url":"https://api.github.com/users/underscorgan/followers","following_url":"https://api.github.com/users/underscorgan/following{/other_user}","gists_url":"https://api.github.com/users/underscorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorgan/subscriptions","organizations_url":"https://api.github.com/users/underscorgan/orgs","repos_url":"https://api.github.com/users/underscorgan/repos","events_url":"https://api.github.com/users/underscorgan/events{/privacy}","received_events_url":"https://api.github.com/users/underscorgan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/underscorgan/packaging","description":"","fork":true,"url":"https://api.github.com/repos/underscorgan/packaging","forks_url":"https://api.github.com/repos/underscorgan/packaging/forks","keys_url":"https://api.github.com/repos/underscorgan/packaging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/underscorgan/packaging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/underscorgan/packaging/teams","hooks_url":"https://api.github.com/repos/underscorgan/packaging/hooks","issue_events_url":"https://api.github.com/repos/underscorgan/packaging/issues/events{/number}","events_url":"https://api.github.com/repos/underscorgan/packaging/events","assignees_url":"https://api.github.com/repos/underscorgan/packaging/assignees{/user}","branches_url":"https://api.github.com/repos/underscorgan/packaging/branches{/branch}","tags_url":"https://api.github.com/repos/underscorgan/packaging/tags","blobs_url":"https://api.github.com/repos/underscorgan/packaging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/underscorgan/packaging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/underscorgan/packaging/git/refs{/sha}","trees_url":"https://api.github.com/repos/underscorgan/packaging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/underscorgan/packaging/statuses/{sha}","languages_url":"https://api.github.com/repos/underscorgan/packaging/languages","stargazers_url":"https://api.github.com/repos/underscorgan/packaging/stargazers","contributors_url":"https://api.github.com/repos/underscorgan/packaging/contributors","subscribers_url":"https://api.github.com/repos/underscorgan/packaging/subscribers","subscription_url":"https://api.github.com/repos/underscorgan/packaging/subscription","commits_url":"https://api.github.com/repos/underscorgan/packaging/commits{/sha}","git_commits_url":"https://api.github.com/repos/underscorgan/packaging/git/commits{/sha}","comments_url":"https://api.github.com/repos/underscorgan/packaging/comments{/number}","issue_comment_url":"https://api.github.com/repos/underscorgan/packaging/issues/comments{/number}","contents_url":"https://api.github.com/repos/underscorgan/packaging/contents/{+path}","compare_url":"https://api.github.com/repos/underscorgan/packaging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/underscorgan/packaging/merges","archive_url":"https://api.github.com/repos/underscorgan/packaging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/underscorgan/packaging/downloads","issues_url":"https://api.github.com/repos/underscorgan/packaging/issues{/number}","pulls_url":"https://api.github.com/repos/underscorgan/packaging/pulls{/number}","milestones_url":"https://api.github.com/repos/underscorgan/packaging/milestones{/number}","notifications_url":"https://api.github.com/repos/underscorgan/packaging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/underscorgan/packaging/labels{/name}","releases_url":"https://api.github.com/repos/underscorgan/packaging/releases{/id}","deployments_url":"https://api.github.com/repos/underscorgan/packaging/deployments","created_at":"2015-10-01T16:55:06Z","updated_at":"2016-01-29T23:53:40Z","pushed_at":"2016-02-18T21:26:59Z","git_url":"git://github.com/underscorgan/packaging.git","ssh_url":"git@github.com:underscorgan/packaging.git","clone_url":"https://github.com/underscorgan/packaging.git","svn_url":"https://github.com/underscorgan/packaging","homepage":null,"size":1797,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"1fc2fe3943ce0f371e297a868c4c48fa9644cbf6","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":5209001,"name":"packaging","full_name":"puppetlabs/packaging","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/packaging","description":"","fork":false,"url":"https://api.github.com/repos/puppetlabs/packaging","forks_url":"https://api.github.com/repos/puppetlabs/packaging/forks","keys_url":"https://api.github.com/repos/puppetlabs/packaging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/packaging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/packaging/teams","hooks_url":"https://api.github.com/repos/puppetlabs/packaging/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/packaging/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/packaging/events","assignees_url":"https://api.github.com/repos/puppetlabs/packaging/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/packaging/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/packaging/tags","blobs_url":"https://api.github.com/repos/puppetlabs/packaging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/packaging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/packaging/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/packaging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/packaging/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/packaging/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/packaging/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/packaging/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/packaging/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/packaging/subscription","commits_url":"https://api.github.com/repos/puppetlabs/packaging/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/packaging/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/packaging/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/packaging/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/packaging/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/packaging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/packaging/merges","archive_url":"https://api.github.com/repos/puppetlabs/packaging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/packaging/downloads","issues_url":"https://api.github.com/repos/puppetlabs/packaging/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/packaging/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/packaging/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/packaging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/packaging/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/packaging/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/packaging/deployments","created_at":"2012-07-27T20:18:19Z","updated_at":"2016-01-29T10:19:27Z","pushed_at":"2016-02-18T21:27:00Z","git_url":"git://github.com/puppetlabs/packaging.git","ssh_url":"git@github.com:puppetlabs/packaging.git","clone_url":"https://github.com/puppetlabs/packaging.git","svn_url":"https://github.com/puppetlabs/packaging","homepage":null,"size":2007,"stargazers_count":30,"watchers_count":30,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":4,"forks":51,"open_issues":4,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/504"},"html":{"href":"https://github.com/puppetlabs/packaging/pull/504"},"issue":{"href":"https://api.github.com/repos/puppetlabs/packaging/issues/504"},"comments":{"href":"https://api.github.com/repos/puppetlabs/packaging/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/packaging/statuses/93c15affb6f9a37b0865bf8b06c912a4ccae6fe9"}}}}