{"action":"created","comment":{"url":"https://api.github.com/repos/heroku/identity/pulls/comments/43699256","id":43699256,"diff_hunk":"@@ -37,19 +37,17 @@ class Account < Sinatra::Base\n       post \"/accept/ok\" do\n         begin\n           api = HerokuAPI.new(ip: request.ip, request_ids: request_ids,\n-            version: 2)\n-          res = api.post(path: \"/invitation2/save\", expects: 200,\n-            body: URI.encode_www_form({\n-              \"id\"                          => params[:id],\n-              \"token\"                       => params[:token],\n-              \"user[password]\"              => params[:password],\n-              \"user[password_confirmation]\" => params[:password_confirmation],\n-              \"user[receive_newsletter]\"    => params[:receive_newsletter],\n+            version: 3)","path":"lib/identity/account.rb","position":12,"original_position":12,"commit_id":"6b49a51709921cf9f7c8b085a76da8aed31aaaf6","original_commit_id":"6b49a51709921cf9f7c8b085a76da8aed31aaaf6","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":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-11-02T23:30:46Z","updated_at":"2015-11-02T23:30:46Z","html_url":"https://github.com/heroku/identity/pull/189#discussion_r43699256","pull_request_url":"https://api.github.com/repos/heroku/identity/pulls/189","_links":{"self":{"href":"https://api.github.com/repos/heroku/identity/pulls/comments/43699256"},"html":{"href":"https://github.com/heroku/identity/pull/189#discussion_r43699256"},"pull_request":{"href":"https://api.github.com/repos/heroku/identity/pulls/189"}}},"pull_request":{"url":"https://api.github.com/repos/heroku/identity/pulls/189","id":49501427,"html_url":"https://github.com/heroku/identity/pull/189","diff_url":"https://github.com/heroku/identity/pull/189.diff","patch_url":"https://github.com/heroku/identity/pull/189.patch","issue_url":"https://api.github.com/repos/heroku/identity/issues/189","number":189,"state":"open","locked":false,"title":"[WIP] Use API's v3 Invitations Endpoint","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":"For `POST /account/accept/ok`, use API's new v3 endpoint.\r\n\r\nWIP, testing with Signup.","created_at":"2015-11-02T23:30:40Z","updated_at":"2015-11-02T23:30:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"227c9338d7e36240c6e16accc078205d5a1f81d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/heroku/identity/pulls/189/commits","review_comments_url":"https://api.github.com/repos/heroku/identity/pulls/189/comments","review_comment_url":"https://api.github.com/repos/heroku/identity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heroku/identity/issues/189/comments","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/6b49a51709921cf9f7c8b085a76da8aed31aaaf6","head":{"label":"heroku:doug-v3-invitations","ref":"doug-v3-invitations","sha":"6b49a51709921cf9f7c8b085a76da8aed31aaaf6","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-10-27T14:02:43Z","pushed_at":"2015-11-02T23:30:40Z","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":4464,"stargazers_count":234,"watchers_count":234,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":20,"forks":13,"open_issues":20,"watchers":234,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"e81fa68b03772ad209b394d82431f797e9719cde","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-10-27T14:02:43Z","pushed_at":"2015-11-02T23:30:40Z","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":4464,"stargazers_count":234,"watchers_count":234,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":20,"forks":13,"open_issues":20,"watchers":234,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/identity/pulls/189"},"html":{"href":"https://github.com/heroku/identity/pull/189"},"issue":{"href":"https://api.github.com/repos/heroku/identity/issues/189"},"comments":{"href":"https://api.github.com/repos/heroku/identity/issues/189/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/identity/pulls/189/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/identity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heroku/identity/pulls/189/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/identity/statuses/6b49a51709921cf9f7c8b085a76da8aed31aaaf6"}}}}