{"action":"created","comment":{"url":"https://api.github.com/repos/joyent/git-apply-pr/pulls/comments/28182060","id":28182060,"diff_hunk":"@@ -142,15 +142,14 @@ function resolveNames() {\n     github.user.getFrom({ user: name }, resolve);\n   });\n }\n-\n+console.log(OUTPUT['PR-URL'] + '.patch');","path":"apply-pr.js","position":30,"original_position":30,"commit_id":"46ff60a8a493f103d177c2db05b1046d2e0665ea","original_commit_id":"46ff60a8a493f103d177c2db05b1046d2e0665ea","user":{"login":"misterdjules","id":811047,"avatar_url":"https://avatars.githubusercontent.com/u/811047?v=3","gravatar_id":"","url":"https://api.github.com/users/misterdjules","html_url":"https://github.com/misterdjules","followers_url":"https://api.github.com/users/misterdjules/followers","following_url":"https://api.github.com/users/misterdjules/following{/other_user}","gists_url":"https://api.github.com/users/misterdjules/gists{/gist_id}","starred_url":"https://api.github.com/users/misterdjules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterdjules/subscriptions","organizations_url":"https://api.github.com/users/misterdjules/orgs","repos_url":"https://api.github.com/users/misterdjules/repos","events_url":"https://api.github.com/users/misterdjules/events{/privacy}","received_events_url":"https://api.github.com/users/misterdjules/received_events","type":"User","site_admin":false},"body":"Should we use https://www.npmjs.com/package/debug do output debug information?","created_at":"2015-04-10T21:30:48Z","updated_at":"2015-04-10T21:30:48Z","html_url":"https://github.com/joyent/git-apply-pr/pull/7#discussion_r28182060","pull_request_url":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/joyent/git-apply-pr/pulls/comments/28182060"},"html":{"href":"https://github.com/joyent/git-apply-pr/pull/7#discussion_r28182060"},"pull_request":{"href":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7","id":33085028,"html_url":"https://github.com/joyent/git-apply-pr/pull/7","diff_url":"https://github.com/joyent/git-apply-pr/pull/7.diff","patch_url":"https://github.com/joyent/git-apply-pr/pull/7.patch","issue_url":"https://api.github.com/repos/joyent/git-apply-pr/issues/7","number":7,"state":"open","locked":false,"title":"http-client: use location header","user":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"body":"GitHub decided recently to host patches on another domain\r\n(githubusercontent) so we have to follow the sent location header.\r\n\r\ncloses #6","created_at":"2015-04-10T21:26:36Z","updated_at":"2015-04-10T21:30:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6d1ad29378278f3c8d2685738e86b20e62c5f22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7/commits","review_comments_url":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7/comments","review_comment_url":"https://api.github.com/repos/joyent/git-apply-pr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joyent/git-apply-pr/issues/7/comments","statuses_url":"https://api.github.com/repos/joyent/git-apply-pr/statuses/46ff60a8a493f103d177c2db05b1046d2e0665ea","head":{"label":"robertkowalski:follow-redirects","ref":"follow-redirects","sha":"46ff60a8a493f103d177c2db05b1046d2e0665ea","user":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"repo":{"id":31394171,"name":"git-apply-pr","full_name":"robertkowalski/git-apply-pr","owner":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertkowalski/git-apply-pr","description":"Validate GitHub PullRequests and add metadata","fork":true,"url":"https://api.github.com/repos/robertkowalski/git-apply-pr","forks_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/forks","keys_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/teams","hooks_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/hooks","issue_events_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/issues/events{/number}","events_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/events","assignees_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/assignees{/user}","branches_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/branches{/branch}","tags_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/tags","blobs_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/statuses/{sha}","languages_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/languages","stargazers_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/stargazers","contributors_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/contributors","subscribers_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/subscribers","subscription_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/subscription","commits_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/issues/comments{/number}","contents_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/contents/{+path}","compare_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/merges","archive_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/downloads","issues_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/issues{/number}","pulls_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/pulls{/number}","milestones_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/milestones{/number}","notifications_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/labels{/name}","releases_url":"https://api.github.com/repos/robertkowalski/git-apply-pr/releases{/id}","created_at":"2015-02-26T23:23:48Z","updated_at":"2015-02-26T23:23:49Z","pushed_at":"2015-04-10T21:26:14Z","git_url":"git://github.com/robertkowalski/git-apply-pr.git","ssh_url":"git@github.com:robertkowalski/git-apply-pr.git","clone_url":"https://github.com/robertkowalski/git-apply-pr.git","svn_url":"https://github.com/robertkowalski/git-apply-pr","homepage":null,"size":125,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"joyent:master","ref":"master","sha":"e4543db366fec9b222b829b0eeaafe9e40330790","user":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"repo":{"id":29889102,"name":"git-apply-pr","full_name":"joyent/git-apply-pr","owner":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joyent/git-apply-pr","description":"Validate GitHub PullRequests and add metadata","fork":false,"url":"https://api.github.com/repos/joyent/git-apply-pr","forks_url":"https://api.github.com/repos/joyent/git-apply-pr/forks","keys_url":"https://api.github.com/repos/joyent/git-apply-pr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joyent/git-apply-pr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joyent/git-apply-pr/teams","hooks_url":"https://api.github.com/repos/joyent/git-apply-pr/hooks","issue_events_url":"https://api.github.com/repos/joyent/git-apply-pr/issues/events{/number}","events_url":"https://api.github.com/repos/joyent/git-apply-pr/events","assignees_url":"https://api.github.com/repos/joyent/git-apply-pr/assignees{/user}","branches_url":"https://api.github.com/repos/joyent/git-apply-pr/branches{/branch}","tags_url":"https://api.github.com/repos/joyent/git-apply-pr/tags","blobs_url":"https://api.github.com/repos/joyent/git-apply-pr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joyent/git-apply-pr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joyent/git-apply-pr/git/refs{/sha}","trees_url":"https://api.github.com/repos/joyent/git-apply-pr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joyent/git-apply-pr/statuses/{sha}","languages_url":"https://api.github.com/repos/joyent/git-apply-pr/languages","stargazers_url":"https://api.github.com/repos/joyent/git-apply-pr/stargazers","contributors_url":"https://api.github.com/repos/joyent/git-apply-pr/contributors","subscribers_url":"https://api.github.com/repos/joyent/git-apply-pr/subscribers","subscription_url":"https://api.github.com/repos/joyent/git-apply-pr/subscription","commits_url":"https://api.github.com/repos/joyent/git-apply-pr/commits{/sha}","git_commits_url":"https://api.github.com/repos/joyent/git-apply-pr/git/commits{/sha}","comments_url":"https://api.github.com/repos/joyent/git-apply-pr/comments{/number}","issue_comment_url":"https://api.github.com/repos/joyent/git-apply-pr/issues/comments{/number}","contents_url":"https://api.github.com/repos/joyent/git-apply-pr/contents/{+path}","compare_url":"https://api.github.com/repos/joyent/git-apply-pr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joyent/git-apply-pr/merges","archive_url":"https://api.github.com/repos/joyent/git-apply-pr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joyent/git-apply-pr/downloads","issues_url":"https://api.github.com/repos/joyent/git-apply-pr/issues{/number}","pulls_url":"https://api.github.com/repos/joyent/git-apply-pr/pulls{/number}","milestones_url":"https://api.github.com/repos/joyent/git-apply-pr/milestones{/number}","notifications_url":"https://api.github.com/repos/joyent/git-apply-pr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joyent/git-apply-pr/labels{/name}","releases_url":"https://api.github.com/repos/joyent/git-apply-pr/releases{/id}","created_at":"2015-01-27T00:18:31Z","updated_at":"2015-03-26T17:52:43Z","pushed_at":"2015-04-10T21:26:36Z","git_url":"git://github.com/joyent/git-apply-pr.git","ssh_url":"git@github.com:joyent/git-apply-pr.git","clone_url":"https://github.com/joyent/git-apply-pr.git","svn_url":"https://github.com/joyent/git-apply-pr","homepage":null,"size":363,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7"},"html":{"href":"https://github.com/joyent/git-apply-pr/pull/7"},"issue":{"href":"https://api.github.com/repos/joyent/git-apply-pr/issues/7"},"comments":{"href":"https://api.github.com/repos/joyent/git-apply-pr/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/joyent/git-apply-pr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joyent/git-apply-pr/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/joyent/git-apply-pr/statuses/46ff60a8a493f103d177c2db05b1046d2e0665ea"}}}}