{"action":"created","comment":{"url":"https://api.github.com/repos/heroku/identity/pulls/comments/40842832","id":40842832,"diff_hunk":"@@ -50,8 +50,9 @@ def two_factor?\n     MultiJson.encode({ email: \"kerry@heroku.com\" })\n   end\n \n-  post \"/confirm_change_email/:token\" do |token|\n-    302\n+  patch \"/users/~\" do","path":"test/service_stubs/heroku_api_stub.rb","position":6,"original_position":6,"commit_id":"43279615bb73514edf325edcfb9868fe060a4ab6","original_commit_id":"43279615bb73514edf325edcfb9868fe060a4ab6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2015-09-30T19:55:14Z","updated_at":"2015-09-30T19:55:14Z","html_url":"https://github.com/heroku/identity/pull/178#discussion_r40842832","pull_request_url":"https://api.github.com/repos/heroku/identity/pulls/178","_links":{"self":{"href":"https://api.github.com/repos/heroku/identity/pulls/comments/40842832"},"html":{"href":"https://github.com/heroku/identity/pull/178#discussion_r40842832"},"pull_request":{"href":"https://api.github.com/repos/heroku/identity/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/heroku/identity/pulls/178","id":46443680,"html_url":"https://github.com/heroku/identity/pull/178","diff_url":"https://github.com/heroku/identity/pull/178.diff","patch_url":"https://github.com/heroku/identity/pull/178.patch","issue_url":"https://api.github.com/repos/heroku/identity/issues/178","number":178,"state":"open","locked":false,"title":"Convert change email confirm to use API's v3 PATCH /users/~","user":{"login":"dmcinnes","id":16557,"avatar_url":"https://avatars.githubusercontent.com/u/16557?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcinnes","html_url":"https://github.com/dmcinnes","followers_url":"https://api.github.com/users/dmcinnes/followers","following_url":"https://api.github.com/users/dmcinnes/following{/other_user}","gists_url":"https://api.github.com/users/dmcinnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcinnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcinnes/subscriptions","organizations_url":"https://api.github.com/users/dmcinnes/orgs","repos_url":"https://api.github.com/users/dmcinnes/repos","events_url":"https://api.github.com/users/dmcinnes/events{/privacy}","received_events_url":"https://api.github.com/users/dmcinnes/received_events","type":"User","site_admin":false},"body":"First part in an effort to move off of API v2.\r\n\r\nDepends on https://github.com/heroku/api/pull/4929","created_at":"2015-09-30T19:14:18Z","updated_at":"2015-09-30T19:55:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"202a8b9dd0745b28224557c6a94ad4fb4933c7ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/heroku/identity/pulls/178/commits","review_comments_url":"https://api.github.com/repos/heroku/identity/pulls/178/comments","review_comment_url":"https://api.github.com/repos/heroku/identity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heroku/identity/issues/178/comments","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/43279615bb73514edf325edcfb9868fe060a4ab6","head":{"label":"heroku:doug-v3-confirm-change-email","ref":"doug-v3-confirm-change-email","sha":"43279615bb73514edf325edcfb9868fe060a4ab6","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":7472185,"name":"identity","full_name":"heroku/identity","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/identity","description":"Login and OAuth management service for Heroku","fork":false,"url":"https://api.github.com/repos/heroku/identity","forks_url":"https://api.github.com/repos/heroku/identity/forks","keys_url":"https://api.github.com/repos/heroku/identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/identity/teams","hooks_url":"https://api.github.com/repos/heroku/identity/hooks","issue_events_url":"https://api.github.com/repos/heroku/identity/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/identity/events","assignees_url":"https://api.github.com/repos/heroku/identity/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/identity/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/identity/tags","blobs_url":"https://api.github.com/repos/heroku/identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/identity/languages","stargazers_url":"https://api.github.com/repos/heroku/identity/stargazers","contributors_url":"https://api.github.com/repos/heroku/identity/contributors","subscribers_url":"https://api.github.com/repos/heroku/identity/subscribers","subscription_url":"https://api.github.com/repos/heroku/identity/subscription","commits_url":"https://api.github.com/repos/heroku/identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/identity/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/identity/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/identity/merges","archive_url":"https://api.github.com/repos/heroku/identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/identity/downloads","issues_url":"https://api.github.com/repos/heroku/identity/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/identity/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/identity/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/identity/labels{/name}","releases_url":"https://api.github.com/repos/heroku/identity/releases{/id}","created_at":"2013-01-06T20:17:00Z","updated_at":"2015-09-23T00:51:33Z","pushed_at":"2015-09-30T19:55:08Z","git_url":"git://github.com/heroku/identity.git","ssh_url":"git@github.com:heroku/identity.git","clone_url":"https://github.com/heroku/identity.git","svn_url":"https://github.com/heroku/identity","homepage":"https://id.heroku.com/","size":4310,"stargazers_count":231,"watchers_count":231,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":19,"forks":13,"open_issues":19,"watchers":231,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"d9f5f76d568d8d04ee088c93a9c9688e1384c7f1","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":7472185,"name":"identity","full_name":"heroku/identity","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/identity","description":"Login and OAuth management service for Heroku","fork":false,"url":"https://api.github.com/repos/heroku/identity","forks_url":"https://api.github.com/repos/heroku/identity/forks","keys_url":"https://api.github.com/repos/heroku/identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/identity/teams","hooks_url":"https://api.github.com/repos/heroku/identity/hooks","issue_events_url":"https://api.github.com/repos/heroku/identity/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/identity/events","assignees_url":"https://api.github.com/repos/heroku/identity/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/identity/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/identity/tags","blobs_url":"https://api.github.com/repos/heroku/identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/identity/languages","stargazers_url":"https://api.github.com/repos/heroku/identity/stargazers","contributors_url":"https://api.github.com/repos/heroku/identity/contributors","subscribers_url":"https://api.github.com/repos/heroku/identity/subscribers","subscription_url":"https://api.github.com/repos/heroku/identity/subscription","commits_url":"https://api.github.com/repos/heroku/identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/identity/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/identity/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/identity/merges","archive_url":"https://api.github.com/repos/heroku/identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/identity/downloads","issues_url":"https://api.github.com/repos/heroku/identity/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/identity/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/identity/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/identity/labels{/name}","releases_url":"https://api.github.com/repos/heroku/identity/releases{/id}","created_at":"2013-01-06T20:17:00Z","updated_at":"2015-09-23T00:51:33Z","pushed_at":"2015-09-30T19:55:08Z","git_url":"git://github.com/heroku/identity.git","ssh_url":"git@github.com:heroku/identity.git","clone_url":"https://github.com/heroku/identity.git","svn_url":"https://github.com/heroku/identity","homepage":"https://id.heroku.com/","size":4310,"stargazers_count":231,"watchers_count":231,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":19,"forks":13,"open_issues":19,"watchers":231,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/identity/pulls/178"},"html":{"href":"https://github.com/heroku/identity/pull/178"},"issue":{"href":"https://api.github.com/repos/heroku/identity/issues/178"},"comments":{"href":"https://api.github.com/repos/heroku/identity/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/identity/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/identity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heroku/identity/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/identity/statuses/43279615bb73514edf325edcfb9868fe060a4ab6"}}}}