{"action":"created","comment":{"url":"https://api.github.com/repos/mikedeboer/node-github/pulls/comments/90360690","pull_request_review_id":10880629,"id":90360690,"diff_hunk":"@@ -682,6 +683,13 @@ var Client = module.exports = function(config) {\n                     basic = new Buffer(this.auth.username + \":\" + this.auth.password, \"ascii\").toString(\"base64\");\n                     headers[\"Authorization\"] = \"Basic \" + basic;\n                     break;\n+                case \"netrc\":\n+                    var auth = netrc()[\"api.github.com\"];","path":"lib/index.js","position":24,"original_position":24,"commit_id":"18a160f7ce212190ebe52674cc36b28c0216d002","original_commit_id":"18a160f7ce212190ebe52674cc36b28c0216d002","user":{"login":"ruimarinho","id":288709,"avatar_url":"https://avatars.githubusercontent.com/u/288709?v=3","gravatar_id":"","url":"https://api.github.com/users/ruimarinho","html_url":"https://github.com/ruimarinho","followers_url":"https://api.github.com/users/ruimarinho/followers","following_url":"https://api.github.com/users/ruimarinho/following{/other_user}","gists_url":"https://api.github.com/users/ruimarinho/gists{/gist_id}","starred_url":"https://api.github.com/users/ruimarinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruimarinho/subscriptions","organizations_url":"https://api.github.com/users/ruimarinho/orgs","repos_url":"https://api.github.com/users/ruimarinho/repos","events_url":"https://api.github.com/users/ruimarinho/events{/privacy}","received_events_url":"https://api.github.com/users/ruimarinho/received_events","type":"User","site_admin":false},"body":"In that particular way this wouldn't work, as you specifically must have the `api.github.com` domain listed there. However, I'm pretty sure it will share the same password as `api.github.com`, so there would be no need to add `uploads.github.com` there. It will just work as it is.","created_at":"2016-12-01T00:29:11Z","updated_at":"2016-12-01T00:29:11Z","html_url":"https://github.com/mikedeboer/node-github/pull/467#discussion_r90360690","pull_request_url":"https://api.github.com/repos/mikedeboer/node-github/pulls/467","_links":{"self":{"href":"https://api.github.com/repos/mikedeboer/node-github/pulls/comments/90360690"},"html":{"href":"https://github.com/mikedeboer/node-github/pull/467#discussion_r90360690"},"pull_request":{"href":"https://api.github.com/repos/mikedeboer/node-github/pulls/467"}}},"pull_request":{"url":"https://api.github.com/repos/mikedeboer/node-github/pulls/467","id":95345090,"html_url":"https://github.com/mikedeboer/node-github/pull/467","diff_url":"https://github.com/mikedeboer/node-github/pull/467.diff","patch_url":"https://github.com/mikedeboer/node-github/pull/467.patch","issue_url":"https://api.github.com/repos/mikedeboer/node-github/issues/467","number":467,"state":"closed","locked":false,"title":"Add support for .netrc authentication","user":{"login":"ruimarinho","id":288709,"avatar_url":"https://avatars.githubusercontent.com/u/288709?v=3","gravatar_id":"","url":"https://api.github.com/users/ruimarinho","html_url":"https://github.com/ruimarinho","followers_url":"https://api.github.com/users/ruimarinho/followers","following_url":"https://api.github.com/users/ruimarinho/following{/other_user}","gists_url":"https://api.github.com/users/ruimarinho/gists{/gist_id}","starred_url":"https://api.github.com/users/ruimarinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruimarinho/subscriptions","organizations_url":"https://api.github.com/users/ruimarinho/orgs","repos_url":"https://api.github.com/users/ruimarinho/repos","events_url":"https://api.github.com/users/ruimarinho/events{/privacy}","received_events_url":"https://api.github.com/users/ruimarinho/received_events","type":"User","site_admin":false},"body":"Super quick PR to enable `.netrc` authentication. Closes https://github.com/mikedeboer/node-github/issues/466.\r\n\r\nAdd the following configuration to your `~/.netrc` file:\r\n\r\n```sh\r\n> ~/.netrc\r\nmachine api.github.com\r\nlogin <username>\r\npassword <token>\r\nprotocol https\r\n```\r\n\r\nThen simply authenticate with `github.authenticate({ type: 'netrc' })`. \r\n\r\nLet me know if there's anything missing.","created_at":"2016-11-25T20:20:34Z","updated_at":"2016-12-01T00:29:11Z","closed_at":"2016-11-30T22:33:27Z","merged_at":"2016-11-30T22:33:27Z","merge_commit_sha":"18a160f7ce212190ebe52674cc36b28c0216d002","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mikedeboer/node-github/pulls/467/commits","review_comments_url":"https://api.github.com/repos/mikedeboer/node-github/pulls/467/comments","review_comment_url":"https://api.github.com/repos/mikedeboer/node-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mikedeboer/node-github/issues/467/comments","statuses_url":"https://api.github.com/repos/mikedeboer/node-github/statuses/18a160f7ce212190ebe52674cc36b28c0216d002","head":{"label":"seegno-forks:feature/netrc","ref":"feature/netrc","sha":"18a160f7ce212190ebe52674cc36b28c0216d002","user":{"login":"seegno-forks","id":10717345,"avatar_url":"https://avatars.githubusercontent.com/u/10717345?v=3","gravatar_id":"","url":"https://api.github.com/users/seegno-forks","html_url":"https://github.com/seegno-forks","followers_url":"https://api.github.com/users/seegno-forks/followers","following_url":"https://api.github.com/users/seegno-forks/following{/other_user}","gists_url":"https://api.github.com/users/seegno-forks/gists{/gist_id}","starred_url":"https://api.github.com/users/seegno-forks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seegno-forks/subscriptions","organizations_url":"https://api.github.com/users/seegno-forks/orgs","repos_url":"https://api.github.com/users/seegno-forks/repos","events_url":"https://api.github.com/users/seegno-forks/events{/privacy}","received_events_url":"https://api.github.com/users/seegno-forks/received_events","type":"Organization","site_admin":false},"repo":{"id":74785410,"name":"node-github","full_name":"seegno-forks/node-github","owner":{"login":"seegno-forks","id":10717345,"avatar_url":"https://avatars.githubusercontent.com/u/10717345?v=3","gravatar_id":"","url":"https://api.github.com/users/seegno-forks","html_url":"https://github.com/seegno-forks","followers_url":"https://api.github.com/users/seegno-forks/followers","following_url":"https://api.github.com/users/seegno-forks/following{/other_user}","gists_url":"https://api.github.com/users/seegno-forks/gists{/gist_id}","starred_url":"https://api.github.com/users/seegno-forks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seegno-forks/subscriptions","organizations_url":"https://api.github.com/users/seegno-forks/orgs","repos_url":"https://api.github.com/users/seegno-forks/repos","events_url":"https://api.github.com/users/seegno-forks/events{/privacy}","received_events_url":"https://api.github.com/users/seegno-forks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seegno-forks/node-github","description":"node library to access the GitHub API","fork":true,"url":"https://api.github.com/repos/seegno-forks/node-github","forks_url":"https://api.github.com/repos/seegno-forks/node-github/forks","keys_url":"https://api.github.com/repos/seegno-forks/node-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seegno-forks/node-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seegno-forks/node-github/teams","hooks_url":"https://api.github.com/repos/seegno-forks/node-github/hooks","issue_events_url":"https://api.github.com/repos/seegno-forks/node-github/issues/events{/number}","events_url":"https://api.github.com/repos/seegno-forks/node-github/events","assignees_url":"https://api.github.com/repos/seegno-forks/node-github/assignees{/user}","branches_url":"https://api.github.com/repos/seegno-forks/node-github/branches{/branch}","tags_url":"https://api.github.com/repos/seegno-forks/node-github/tags","blobs_url":"https://api.github.com/repos/seegno-forks/node-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seegno-forks/node-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seegno-forks/node-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/seegno-forks/node-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seegno-forks/node-github/statuses/{sha}","languages_url":"https://api.github.com/repos/seegno-forks/node-github/languages","stargazers_url":"https://api.github.com/repos/seegno-forks/node-github/stargazers","contributors_url":"https://api.github.com/repos/seegno-forks/node-github/contributors","subscribers_url":"https://api.github.com/repos/seegno-forks/node-github/subscribers","subscription_url":"https://api.github.com/repos/seegno-forks/node-github/subscription","commits_url":"https://api.github.com/repos/seegno-forks/node-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/seegno-forks/node-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/seegno-forks/node-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/seegno-forks/node-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/seegno-forks/node-github/contents/{+path}","compare_url":"https://api.github.com/repos/seegno-forks/node-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seegno-forks/node-github/merges","archive_url":"https://api.github.com/repos/seegno-forks/node-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seegno-forks/node-github/downloads","issues_url":"https://api.github.com/repos/seegno-forks/node-github/issues{/number}","pulls_url":"https://api.github.com/repos/seegno-forks/node-github/pulls{/number}","milestones_url":"https://api.github.com/repos/seegno-forks/node-github/milestones{/number}","notifications_url":"https://api.github.com/repos/seegno-forks/node-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seegno-forks/node-github/labels{/name}","releases_url":"https://api.github.com/repos/seegno-forks/node-github/releases{/id}","deployments_url":"https://api.github.com/repos/seegno-forks/node-github/deployments","created_at":"2016-11-25T20:07:58Z","updated_at":"2016-11-25T20:07:59Z","pushed_at":"2016-11-30T23:53:19Z","git_url":"git://github.com/seegno-forks/node-github.git","ssh_url":"git@github.com:seegno-forks/node-github.git","clone_url":"https://github.com/seegno-forks/node-github.git","svn_url":"https://github.com/seegno-forks/node-github","homepage":"http://mikedeboer.github.com/node-github/","size":2593,"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":"mikedeboer:master","ref":"master","sha":"eef99a4979edd6053b8b9af38b82709c310a4443","user":{"login":"mikedeboer","id":141571,"avatar_url":"https://avatars.githubusercontent.com/u/141571?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedeboer","html_url":"https://github.com/mikedeboer","followers_url":"https://api.github.com/users/mikedeboer/followers","following_url":"https://api.github.com/users/mikedeboer/following{/other_user}","gists_url":"https://api.github.com/users/mikedeboer/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedeboer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedeboer/subscriptions","organizations_url":"https://api.github.com/users/mikedeboer/orgs","repos_url":"https://api.github.com/users/mikedeboer/repos","events_url":"https://api.github.com/users/mikedeboer/events{/privacy}","received_events_url":"https://api.github.com/users/mikedeboer/received_events","type":"User","site_admin":false},"repo":{"id":711976,"name":"node-github","full_name":"mikedeboer/node-github","owner":{"login":"mikedeboer","id":141571,"avatar_url":"https://avatars.githubusercontent.com/u/141571?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedeboer","html_url":"https://github.com/mikedeboer","followers_url":"https://api.github.com/users/mikedeboer/followers","following_url":"https://api.github.com/users/mikedeboer/following{/other_user}","gists_url":"https://api.github.com/users/mikedeboer/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedeboer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedeboer/subscriptions","organizations_url":"https://api.github.com/users/mikedeboer/orgs","repos_url":"https://api.github.com/users/mikedeboer/repos","events_url":"https://api.github.com/users/mikedeboer/events{/privacy}","received_events_url":"https://api.github.com/users/mikedeboer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedeboer/node-github","description":"node library to access the GitHub API","fork":false,"url":"https://api.github.com/repos/mikedeboer/node-github","forks_url":"https://api.github.com/repos/mikedeboer/node-github/forks","keys_url":"https://api.github.com/repos/mikedeboer/node-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedeboer/node-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedeboer/node-github/teams","hooks_url":"https://api.github.com/repos/mikedeboer/node-github/hooks","issue_events_url":"https://api.github.com/repos/mikedeboer/node-github/issues/events{/number}","events_url":"https://api.github.com/repos/mikedeboer/node-github/events","assignees_url":"https://api.github.com/repos/mikedeboer/node-github/assignees{/user}","branches_url":"https://api.github.com/repos/mikedeboer/node-github/branches{/branch}","tags_url":"https://api.github.com/repos/mikedeboer/node-github/tags","blobs_url":"https://api.github.com/repos/mikedeboer/node-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedeboer/node-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedeboer/node-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedeboer/node-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedeboer/node-github/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedeboer/node-github/languages","stargazers_url":"https://api.github.com/repos/mikedeboer/node-github/stargazers","contributors_url":"https://api.github.com/repos/mikedeboer/node-github/contributors","subscribers_url":"https://api.github.com/repos/mikedeboer/node-github/subscribers","subscription_url":"https://api.github.com/repos/mikedeboer/node-github/subscription","commits_url":"https://api.github.com/repos/mikedeboer/node-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedeboer/node-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedeboer/node-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedeboer/node-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedeboer/node-github/contents/{+path}","compare_url":"https://api.github.com/repos/mikedeboer/node-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedeboer/node-github/merges","archive_url":"https://api.github.com/repos/mikedeboer/node-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedeboer/node-github/downloads","issues_url":"https://api.github.com/repos/mikedeboer/node-github/issues{/number}","pulls_url":"https://api.github.com/repos/mikedeboer/node-github/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedeboer/node-github/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedeboer/node-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedeboer/node-github/labels{/name}","releases_url":"https://api.github.com/repos/mikedeboer/node-github/releases{/id}","deployments_url":"https://api.github.com/repos/mikedeboer/node-github/deployments","created_at":"2010-06-09T17:07:03Z","updated_at":"2016-11-30T23:53:22Z","pushed_at":"2016-12-01T00:19:24Z","git_url":"git://github.com/mikedeboer/node-github.git","ssh_url":"git@github.com:mikedeboer/node-github.git","clone_url":"https://github.com/mikedeboer/node-github.git","svn_url":"https://github.com/mikedeboer/node-github","homepage":"http://mikedeboer.github.com/node-github/","size":3376,"stargazers_count":1637,"watchers_count":1637,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":403,"mirror_url":null,"open_issues_count":9,"forks":403,"open_issues":9,"watchers":1637,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikedeboer/node-github/pulls/467"},"html":{"href":"https://github.com/mikedeboer/node-github/pull/467"},"issue":{"href":"https://api.github.com/repos/mikedeboer/node-github/issues/467"},"comments":{"href":"https://api.github.com/repos/mikedeboer/node-github/issues/467/comments"},"review_comments":{"href":"https://api.github.com/repos/mikedeboer/node-github/pulls/467/comments"},"review_comment":{"href":"https://api.github.com/repos/mikedeboer/node-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mikedeboer/node-github/pulls/467/commits"},"statuses":{"href":"https://api.github.com/repos/mikedeboer/node-github/statuses/18a160f7ce212190ebe52674cc36b28c0216d002"}}}}
{"actor":{"display_login":"ruimarinho"}}