{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/comments/72350653","id":72350653,"diff_hunk":"@@ -50,24 +50,34 @@ def api_credentials\n       if ENV[\"HOMEBREW_GITHUB_API_TOKEN\"]\n         ENV[\"HOMEBREW_GITHUB_API_TOKEN\"]\n       elsif ENV[\"HOMEBREW_GITHUB_API_USERNAME\"] && ENV[\"HOMEBREW_GITHUB_API_PASSWORD\"]\n-        [ENV[\"HOMEBREW_GITHUB_API_USERNAME\"], ENV[\"HOMEBREW_GITHUB_API_PASSWORD\"]]\n+        [ENV[\"HOMEBREW_GITHUB_API_PASSWORD\"], ENV[\"HOMEBREW_GITHUB_API_USERNAME\"]]","path":"Library/Homebrew/utils/github.rb","position":5,"original_position":5,"commit_id":"395a484715054c2e97485d0347be5de6d4a54f50","original_commit_id":"596b50abd38724266eb4678cfc61bd88cdae985e","user":{"login":"MikeMcQuaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeMcQuaid","html_url":"https://github.com/MikeMcQuaid","followers_url":"https://api.github.com/users/MikeMcQuaid/followers","following_url":"https://api.github.com/users/MikeMcQuaid/following{/other_user}","gists_url":"https://api.github.com/users/MikeMcQuaid/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMcQuaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMcQuaid/subscriptions","organizations_url":"https://api.github.com/users/MikeMcQuaid/orgs","repos_url":"https://api.github.com/users/MikeMcQuaid/repos","events_url":"https://api.github.com/users/MikeMcQuaid/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMcQuaid/received_events","type":"User","site_admin":true},"body":"Cool. Would be good to put stuff like that in the PR body too, I think.","created_at":"2016-07-26T22:33:48Z","updated_at":"2016-07-26T22:33:48Z","html_url":"https://github.com/Homebrew/brew/pull/581#discussion_r72350653","pull_request_url":"https://api.github.com/repos/Homebrew/brew/pulls/581","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/comments/72350653"},"html":{"href":"https://github.com/Homebrew/brew/pull/581#discussion_r72350653"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/581"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/581","id":78629957,"html_url":"https://github.com/Homebrew/brew/pull/581","diff_url":"https://github.com/Homebrew/brew/pull/581.diff","patch_url":"https://github.com/Homebrew/brew/pull/581.patch","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/581","number":581,"state":"open","locked":false,"title":"utils/github: fix broken pipe error","user":{"login":"UniqMartin","id":11892150,"avatar_url":"https://avatars.githubusercontent.com/u/11892150?v=3","gravatar_id":"","url":"https://api.github.com/users/UniqMartin","html_url":"https://github.com/UniqMartin","followers_url":"https://api.github.com/users/UniqMartin/followers","following_url":"https://api.github.com/users/UniqMartin/following{/other_user}","gists_url":"https://api.github.com/users/UniqMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqMartin/subscriptions","organizations_url":"https://api.github.com/users/UniqMartin/orgs","repos_url":"https://api.github.com/users/UniqMartin/repos","events_url":"https://api.github.com/users/UniqMartin/events{/privacy}","received_events_url":"https://api.github.com/users/UniqMartin/received_events","type":"User","site_admin":false},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/.github/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same change?\r\n- [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n- [ ] Have you written new tests for your changes?\r\n- [x] Have you successfully run `brew tests` with your changes locally?\r\n\r\n-----\r\n\r\nSteps to reproduce:\r\n\r\n- Unset any possibly set `HOMEBREW_GITHUB_*` environment variables.\r\n- Switch to a Git without `git-credential-osxkeychain` or temporarily rename this binary.\r\n\r\nBefore:\r\n\r\n```console\r\n$ brew search php\r\nError: Broken pipe\r\n```\r\n\r\nAfter:\r\n\r\n```console\r\n$ brew search php\r\nNo formula found for \"php\".\r\n==> Searching pull requests...\r\nClosed pull requests:\r\nn98-magerun: migrate to php (https://github.com/Homebrew/homebrew-core/pull/1534)\r\nError: GitHub API Error: API rate limit exceeded for A.B.C.D. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\r\nTry again in 25 minutes and 34 seconds, or create a personal access token:\r\n  https://github.com/settings/tokens/new?scopes=&description=Homebrew\r\nand then set the token as: export HOMEBREW_GITHUB_API_TOKEN=\"your_new_token\"\r\n```\r\n\r\nCloses #573.\r\n\r\n**Update:** Slightly expanded the scope of the PR [as mentioned in a comment below](https://github.com/Homebrew/brew/pull/581#issuecomment-234932442).","created_at":"2016-07-25T06:02:51Z","updated_at":"2016-07-26T22:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddd1ec01e350bb11d8991381f68f523b2a935c99","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/brew/pulls/581/commits","review_comments_url":"https://api.github.com/repos/Homebrew/brew/pulls/581/comments","review_comment_url":"https://api.github.com/repos/Homebrew/brew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/581/comments","statuses_url":"https://api.github.com/repos/Homebrew/brew/statuses/395a484715054c2e97485d0347be5de6d4a54f50","head":{"label":"UniqMartin:credential-hose","ref":"credential-hose","sha":"395a484715054c2e97485d0347be5de6d4a54f50","user":{"login":"UniqMartin","id":11892150,"avatar_url":"https://avatars.githubusercontent.com/u/11892150?v=3","gravatar_id":"","url":"https://api.github.com/users/UniqMartin","html_url":"https://github.com/UniqMartin","followers_url":"https://api.github.com/users/UniqMartin/followers","following_url":"https://api.github.com/users/UniqMartin/following{/other_user}","gists_url":"https://api.github.com/users/UniqMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqMartin/subscriptions","organizations_url":"https://api.github.com/users/UniqMartin/orgs","repos_url":"https://api.github.com/users/UniqMartin/repos","events_url":"https://api.github.com/users/UniqMartin/events{/privacy}","received_events_url":"https://api.github.com/users/UniqMartin/received_events","type":"User","site_admin":false},"repo":{"id":55350360,"name":"brew","full_name":"UniqMartin/brew","owner":{"login":"UniqMartin","id":11892150,"avatar_url":"https://avatars.githubusercontent.com/u/11892150?v=3","gravatar_id":"","url":"https://api.github.com/users/UniqMartin","html_url":"https://github.com/UniqMartin","followers_url":"https://api.github.com/users/UniqMartin/followers","following_url":"https://api.github.com/users/UniqMartin/following{/other_user}","gists_url":"https://api.github.com/users/UniqMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqMartin/subscriptions","organizations_url":"https://api.github.com/users/UniqMartin/orgs","repos_url":"https://api.github.com/users/UniqMartin/repos","events_url":"https://api.github.com/users/UniqMartin/events{/privacy}","received_events_url":"https://api.github.com/users/UniqMartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UniqMartin/brew","description":":beer: Fork of “The missing package manager for OS X”","fork":true,"url":"https://api.github.com/repos/UniqMartin/brew","forks_url":"https://api.github.com/repos/UniqMartin/brew/forks","keys_url":"https://api.github.com/repos/UniqMartin/brew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UniqMartin/brew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UniqMartin/brew/teams","hooks_url":"https://api.github.com/repos/UniqMartin/brew/hooks","issue_events_url":"https://api.github.com/repos/UniqMartin/brew/issues/events{/number}","events_url":"https://api.github.com/repos/UniqMartin/brew/events","assignees_url":"https://api.github.com/repos/UniqMartin/brew/assignees{/user}","branches_url":"https://api.github.com/repos/UniqMartin/brew/branches{/branch}","tags_url":"https://api.github.com/repos/UniqMartin/brew/tags","blobs_url":"https://api.github.com/repos/UniqMartin/brew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UniqMartin/brew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UniqMartin/brew/git/refs{/sha}","trees_url":"https://api.github.com/repos/UniqMartin/brew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UniqMartin/brew/statuses/{sha}","languages_url":"https://api.github.com/repos/UniqMartin/brew/languages","stargazers_url":"https://api.github.com/repos/UniqMartin/brew/stargazers","contributors_url":"https://api.github.com/repos/UniqMartin/brew/contributors","subscribers_url":"https://api.github.com/repos/UniqMartin/brew/subscribers","subscription_url":"https://api.github.com/repos/UniqMartin/brew/subscription","commits_url":"https://api.github.com/repos/UniqMartin/brew/commits{/sha}","git_commits_url":"https://api.github.com/repos/UniqMartin/brew/git/commits{/sha}","comments_url":"https://api.github.com/repos/UniqMartin/brew/comments{/number}","issue_comment_url":"https://api.github.com/repos/UniqMartin/brew/issues/comments{/number}","contents_url":"https://api.github.com/repos/UniqMartin/brew/contents/{+path}","compare_url":"https://api.github.com/repos/UniqMartin/brew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UniqMartin/brew/merges","archive_url":"https://api.github.com/repos/UniqMartin/brew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UniqMartin/brew/downloads","issues_url":"https://api.github.com/repos/UniqMartin/brew/issues{/number}","pulls_url":"https://api.github.com/repos/UniqMartin/brew/pulls{/number}","milestones_url":"https://api.github.com/repos/UniqMartin/brew/milestones{/number}","notifications_url":"https://api.github.com/repos/UniqMartin/brew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UniqMartin/brew/labels{/name}","releases_url":"https://api.github.com/repos/UniqMartin/brew/releases{/id}","deployments_url":"https://api.github.com/repos/UniqMartin/brew/deployments","created_at":"2016-04-03T14:28:58Z","updated_at":"2016-05-25T00:45:16Z","pushed_at":"2016-07-26T22:31:48Z","git_url":"git://github.com/UniqMartin/brew.git","ssh_url":"git@github.com:UniqMartin/brew.git","clone_url":"https://github.com/UniqMartin/brew.git","svn_url":"https://github.com/UniqMartin/brew","homepage":"","size":10263,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Homebrew:master","ref":"master","sha":"0be204aab5878284d8466b141a82d56a166abe7b","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":53238813,"name":"brew","full_name":"Homebrew/brew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/brew","description":":beer: The missing package manager for OS X","fork":false,"url":"https://api.github.com/repos/Homebrew/brew","forks_url":"https://api.github.com/repos/Homebrew/brew/forks","keys_url":"https://api.github.com/repos/Homebrew/brew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/brew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/brew/teams","hooks_url":"https://api.github.com/repos/Homebrew/brew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/brew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/brew/events","assignees_url":"https://api.github.com/repos/Homebrew/brew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/brew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/brew/tags","blobs_url":"https://api.github.com/repos/Homebrew/brew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/brew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/brew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/brew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/brew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/brew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/brew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/brew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/brew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/brew/subscription","commits_url":"https://api.github.com/repos/Homebrew/brew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/brew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/brew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/brew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/brew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/brew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/brew/merges","archive_url":"https://api.github.com/repos/Homebrew/brew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/brew/downloads","issues_url":"https://api.github.com/repos/Homebrew/brew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/brew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/brew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/brew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/brew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/brew/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/brew/deployments","created_at":"2016-03-06T05:08:38Z","updated_at":"2016-07-26T19:03:37Z","pushed_at":"2016-07-26T22:31:49Z","git_url":"git://github.com/Homebrew/brew.git","ssh_url":"git@github.com:Homebrew/brew.git","clone_url":"https://github.com/Homebrew/brew.git","svn_url":"https://github.com/Homebrew/brew","homepage":"http://brew.sh","size":10805,"stargazers_count":2211,"watchers_count":2211,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":649,"mirror_url":null,"open_issues_count":67,"forks":649,"open_issues":67,"watchers":2211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/581"},"html":{"href":"https://github.com/Homebrew/brew/pull/581"},"issue":{"href":"https://api.github.com/repos/Homebrew/brew/issues/581"},"comments":{"href":"https://api.github.com/repos/Homebrew/brew/issues/581/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/581/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/581/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/brew/statuses/395a484715054c2e97485d0347be5de6d4a54f50"}}}}
{"actor":{"display_login":"MikeMcQuaid"}}