{"action":"created","comment":{"url":"https://api.github.com/repos/CruGlobal/global360/pulls/comments/121223668","pull_request_review_id":43257974,"id":121223668,"diff_hunk":"@@ -4,4 +4,15 @@ class Consultant < User\n   def consultant?\n     true\n   end\n+\n+  def merge(other_user_id)\n+    other_user = User.find(other_user_id)\n+\n+    fail \"Cannot find user with id #{other_user_id}\" unless other_user\n+    fail 'You cannot merge a user with themself.' if id == other_user_id\n+\n+    other_user.reviews_consulting.update_all(consultant_id: id)","path":"app/models/consultant.rb","position":11,"original_position":11,"commit_id":"276f79ef077f06dabdb106af8834746b5e06160d","original_commit_id":"276f79ef077f06dabdb106af8834746b5e06160d","user":{"login":"andrewroth","id":13490,"avatar_url":"https://avatars2.githubusercontent.com/u/13490?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewroth","html_url":"https://github.com/andrewroth","followers_url":"https://api.github.com/users/andrewroth/followers","following_url":"https://api.github.com/users/andrewroth/following{/other_user}","gists_url":"https://api.github.com/users/andrewroth/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewroth/subscriptions","organizations_url":"https://api.github.com/users/andrewroth/orgs","repos_url":"https://api.github.com/users/andrewroth/repos","events_url":"https://api.github.com/users/andrewroth/events{/privacy}","received_events_url":"https://api.github.com/users/andrewroth/received_events","type":"User","site_admin":false},"body":"Yet another argument for merging the two? :)","created_at":"2017-06-09T21:11:41Z","updated_at":"2017-06-09T21:20:55Z","html_url":"https://github.com/CruGlobal/global360/pull/108#discussion_r121223668","pull_request_url":"https://api.github.com/repos/CruGlobal/global360/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/global360/pulls/comments/121223668"},"html":{"href":"https://github.com/CruGlobal/global360/pull/108#discussion_r121223668"},"pull_request":{"href":"https://api.github.com/repos/CruGlobal/global360/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/CruGlobal/global360/pulls/108","id":123793933,"html_url":"https://github.com/CruGlobal/global360/pull/108","diff_url":"https://github.com/CruGlobal/global360/pull/108.diff","patch_url":"https://github.com/CruGlobal/global360/pull/108.patch","issue_url":"https://api.github.com/repos/CruGlobal/global360/issues/108","number":108,"state":"open","locked":false,"title":"G360-30 invite with code","user":{"login":"hlbraddock","id":2084351,"avatar_url":"https://avatars1.githubusercontent.com/u/2084351?v=3","gravatar_id":"","url":"https://api.github.com/users/hlbraddock","html_url":"https://github.com/hlbraddock","followers_url":"https://api.github.com/users/hlbraddock/followers","following_url":"https://api.github.com/users/hlbraddock/following{/other_user}","gists_url":"https://api.github.com/users/hlbraddock/gists{/gist_id}","starred_url":"https://api.github.com/users/hlbraddock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlbraddock/subscriptions","organizations_url":"https://api.github.com/users/hlbraddock/orgs","repos_url":"https://api.github.com/users/hlbraddock/repos","events_url":"https://api.github.com/users/hlbraddock/events{/privacy}","received_events_url":"https://api.github.com/users/hlbraddock/received_events","type":"User","site_admin":false},"body":"Email invite with URL ready for review (1st 4 commits).\r\n\r\nThe rest is still in progress.","created_at":"2017-06-02T20:25:12Z","updated_at":"2017-06-09T21:20:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f8bfb057df8b4c9acca0b9dffadaa1e5d120a81","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CruGlobal/global360/pulls/108/commits","review_comments_url":"https://api.github.com/repos/CruGlobal/global360/pulls/108/comments","review_comment_url":"https://api.github.com/repos/CruGlobal/global360/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CruGlobal/global360/issues/108/comments","statuses_url":"https://api.github.com/repos/CruGlobal/global360/statuses/276f79ef077f06dabdb106af8834746b5e06160d","head":{"label":"CruGlobal:G360-30-invite-with-code","ref":"G360-30-invite-with-code","sha":"276f79ef077f06dabdb106af8834746b5e06160d","user":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars3.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":51952859,"name":"global360","full_name":"CruGlobal/global360","owner":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars3.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/global360","description":null,"fork":false,"url":"https://api.github.com/repos/CruGlobal/global360","forks_url":"https://api.github.com/repos/CruGlobal/global360/forks","keys_url":"https://api.github.com/repos/CruGlobal/global360/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/global360/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/global360/teams","hooks_url":"https://api.github.com/repos/CruGlobal/global360/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/global360/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/global360/events","assignees_url":"https://api.github.com/repos/CruGlobal/global360/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/global360/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/global360/tags","blobs_url":"https://api.github.com/repos/CruGlobal/global360/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/global360/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/global360/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/global360/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/global360/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/global360/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/global360/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/global360/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/global360/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/global360/subscription","commits_url":"https://api.github.com/repos/CruGlobal/global360/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/global360/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/global360/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/global360/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruGlobal/global360/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/global360/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/global360/merges","archive_url":"https://api.github.com/repos/CruGlobal/global360/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/global360/downloads","issues_url":"https://api.github.com/repos/CruGlobal/global360/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/global360/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/global360/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/global360/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/global360/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/global360/releases{/id}","deployments_url":"https://api.github.com/repos/CruGlobal/global360/deployments","created_at":"2016-02-17T20:26:03Z","updated_at":"2016-10-31T17:56:37Z","pushed_at":"2017-06-09T14:54:37Z","git_url":"git://github.com/CruGlobal/global360.git","ssh_url":"git@github.com:CruGlobal/global360.git","clone_url":"https://github.com/CruGlobal/global360.git","svn_url":"https://github.com/CruGlobal/global360","homepage":null,"size":1021,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"CruGlobal:master","ref":"master","sha":"07ec11525cff1f107b4796fdf85f824f626a8c65","user":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars3.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":51952859,"name":"global360","full_name":"CruGlobal/global360","owner":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars3.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/global360","description":null,"fork":false,"url":"https://api.github.com/repos/CruGlobal/global360","forks_url":"https://api.github.com/repos/CruGlobal/global360/forks","keys_url":"https://api.github.com/repos/CruGlobal/global360/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/global360/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/global360/teams","hooks_url":"https://api.github.com/repos/CruGlobal/global360/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/global360/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/global360/events","assignees_url":"https://api.github.com/repos/CruGlobal/global360/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/global360/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/global360/tags","blobs_url":"https://api.github.com/repos/CruGlobal/global360/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/global360/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/global360/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/global360/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/global360/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/global360/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/global360/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/global360/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/global360/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/global360/subscription","commits_url":"https://api.github.com/repos/CruGlobal/global360/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/global360/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/global360/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/global360/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruGlobal/global360/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/global360/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/global360/merges","archive_url":"https://api.github.com/repos/CruGlobal/global360/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/global360/downloads","issues_url":"https://api.github.com/repos/CruGlobal/global360/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/global360/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/global360/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/global360/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/global360/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/global360/releases{/id}","deployments_url":"https://api.github.com/repos/CruGlobal/global360/deployments","created_at":"2016-02-17T20:26:03Z","updated_at":"2016-10-31T17:56:37Z","pushed_at":"2017-06-09T14:54:37Z","git_url":"git://github.com/CruGlobal/global360.git","ssh_url":"git@github.com:CruGlobal/global360.git","clone_url":"https://github.com/CruGlobal/global360.git","svn_url":"https://github.com/CruGlobal/global360","homepage":null,"size":1021,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/global360/pulls/108"},"html":{"href":"https://github.com/CruGlobal/global360/pull/108"},"issue":{"href":"https://api.github.com/repos/CruGlobal/global360/issues/108"},"comments":{"href":"https://api.github.com/repos/CruGlobal/global360/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/CruGlobal/global360/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/CruGlobal/global360/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CruGlobal/global360/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/CruGlobal/global360/statuses/276f79ef077f06dabdb106af8834746b5e06160d"}}}}
{"actor":{"display_login":"andrewroth"}}