{"action":"created","comment":{"url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/comments/24933910","id":24933910,"diff_hunk":"@@ -63,13 +70,24 @@ def generate_assignment(response)\n       end\n \n       def comment_on_github(response)\n-        repo = response.matches.flatten.first\n-        id = response.matches.flatten.last\n+        repo = response.match_data[:repo]\n+        id = response.match_data[:id]\n         reviewer = next_reviewer\n         comment = github_comment(reviewer)\n \n-        github_client.add_comment(repo, id, comment)\n-        response.reply(\"#{reviewer} should be on it...\")\n+        begin\n+          github_client.add_comment(repo, id, comment)\n+          response.reply(\"#{reviewer} should be on it...\")\n+        rescue\n+          url = response.match_data[:url]\n+          response.reply(\"I don't know what to do with that URL. #{chat_mention(reviewer, url)}\")","path":"lib/lita/handlers/reviewme.rb","position":39,"original_position":39,"commit_id":"32da5c09cc3a0ed27aee61ad0eb31478cd23c0a9","original_commit_id":"32da5c09cc3a0ed27aee61ad0eb31478cd23c0a9","user":{"login":"iamvery","id":79619,"avatar_url":"https://avatars.githubusercontent.com/u/79619?v=3","gravatar_id":"","url":"https://api.github.com/users/iamvery","html_url":"https://github.com/iamvery","followers_url":"https://api.github.com/users/iamvery/followers","following_url":"https://api.github.com/users/iamvery/following{/other_user}","gists_url":"https://api.github.com/users/iamvery/gists{/gist_id}","starred_url":"https://api.github.com/users/iamvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamvery/subscriptions","organizations_url":"https://api.github.com/users/iamvery/orgs","repos_url":"https://api.github.com/users/iamvery/repos","events_url":"https://api.github.com/users/iamvery/events{/privacy}","received_events_url":"https://api.github.com/users/iamvery/received_events","type":"User","site_admin":false},"body":"Since this is GH specific, should we reply with something like \"Oops, maybe you need to grant the bot access to this repo\"?","created_at":"2015-02-18T19:46:15Z","updated_at":"2015-02-18T19:46:15Z","html_url":"https://github.com/iamvery/lita-reviewme/pull/21#discussion_r24933910","pull_request_url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/comments/24933910"},"html":{"href":"https://github.com/iamvery/lita-reviewme/pull/21#discussion_r24933910"},"pull_request":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21","id":29552707,"html_url":"https://github.com/iamvery/lita-reviewme/pull/21","diff_url":"https://github.com/iamvery/lita-reviewme/pull/21.diff","patch_url":"https://github.com/iamvery/lita-reviewme/pull/21.patch","issue_url":"https://api.github.com/repos/iamvery/lita-reviewme/issues/21","number":21,"state":"open","locked":false,"title":"Handle requests to review non-github URLs more gracefully","user":{"login":"killpack","id":3970187,"avatar_url":"https://avatars.githubusercontent.com/u/3970187?v=3","gravatar_id":"","url":"https://api.github.com/users/killpack","html_url":"https://github.com/killpack","followers_url":"https://api.github.com/users/killpack/followers","following_url":"https://api.github.com/users/killpack/following{/other_user}","gists_url":"https://api.github.com/users/killpack/gists{/gist_id}","starred_url":"https://api.github.com/users/killpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killpack/subscriptions","organizations_url":"https://api.github.com/users/killpack/orgs","repos_url":"https://api.github.com/users/killpack/repos","events_url":"https://api.github.com/users/killpack/events{/privacy}","received_events_url":"https://api.github.com/users/killpack/received_events","type":"User","site_admin":false},"body":"...by mentioning the reviewer in chat, with a link to the thing to review.","created_at":"2015-02-18T19:01:30Z","updated_at":"2015-02-18T19:46:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2839d7ad60f41ce4fbf117f99f62ce957baf604f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21/commits","review_comments_url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21/comments","review_comment_url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/comments/{number}","comments_url":"https://api.github.com/repos/iamvery/lita-reviewme/issues/21/comments","statuses_url":"https://api.github.com/repos/iamvery/lita-reviewme/statuses/32da5c09cc3a0ed27aee61ad0eb31478cd23c0a9","head":{"label":"killpack:master","ref":"master","sha":"32da5c09cc3a0ed27aee61ad0eb31478cd23c0a9","user":{"login":"killpack","id":3970187,"avatar_url":"https://avatars.githubusercontent.com/u/3970187?v=3","gravatar_id":"","url":"https://api.github.com/users/killpack","html_url":"https://github.com/killpack","followers_url":"https://api.github.com/users/killpack/followers","following_url":"https://api.github.com/users/killpack/following{/other_user}","gists_url":"https://api.github.com/users/killpack/gists{/gist_id}","starred_url":"https://api.github.com/users/killpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killpack/subscriptions","organizations_url":"https://api.github.com/users/killpack/orgs","repos_url":"https://api.github.com/users/killpack/repos","events_url":"https://api.github.com/users/killpack/events{/privacy}","received_events_url":"https://api.github.com/users/killpack/received_events","type":"User","site_admin":false},"repo":{"id":30980546,"name":"lita-reviewme","full_name":"killpack/lita-reviewme","owner":{"login":"killpack","id":3970187,"avatar_url":"https://avatars.githubusercontent.com/u/3970187?v=3","gravatar_id":"","url":"https://api.github.com/users/killpack","html_url":"https://github.com/killpack","followers_url":"https://api.github.com/users/killpack/followers","following_url":"https://api.github.com/users/killpack/following{/other_user}","gists_url":"https://api.github.com/users/killpack/gists{/gist_id}","starred_url":"https://api.github.com/users/killpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killpack/subscriptions","organizations_url":"https://api.github.com/users/killpack/orgs","repos_url":"https://api.github.com/users/killpack/repos","events_url":"https://api.github.com/users/killpack/events{/privacy}","received_events_url":"https://api.github.com/users/killpack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/killpack/lita-reviewme","description":null,"fork":true,"url":"https://api.github.com/repos/killpack/lita-reviewme","forks_url":"https://api.github.com/repos/killpack/lita-reviewme/forks","keys_url":"https://api.github.com/repos/killpack/lita-reviewme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/killpack/lita-reviewme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/killpack/lita-reviewme/teams","hooks_url":"https://api.github.com/repos/killpack/lita-reviewme/hooks","issue_events_url":"https://api.github.com/repos/killpack/lita-reviewme/issues/events{/number}","events_url":"https://api.github.com/repos/killpack/lita-reviewme/events","assignees_url":"https://api.github.com/repos/killpack/lita-reviewme/assignees{/user}","branches_url":"https://api.github.com/repos/killpack/lita-reviewme/branches{/branch}","tags_url":"https://api.github.com/repos/killpack/lita-reviewme/tags","blobs_url":"https://api.github.com/repos/killpack/lita-reviewme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/killpack/lita-reviewme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/killpack/lita-reviewme/git/refs{/sha}","trees_url":"https://api.github.com/repos/killpack/lita-reviewme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/killpack/lita-reviewme/statuses/{sha}","languages_url":"https://api.github.com/repos/killpack/lita-reviewme/languages","stargazers_url":"https://api.github.com/repos/killpack/lita-reviewme/stargazers","contributors_url":"https://api.github.com/repos/killpack/lita-reviewme/contributors","subscribers_url":"https://api.github.com/repos/killpack/lita-reviewme/subscribers","subscription_url":"https://api.github.com/repos/killpack/lita-reviewme/subscription","commits_url":"https://api.github.com/repos/killpack/lita-reviewme/commits{/sha}","git_commits_url":"https://api.github.com/repos/killpack/lita-reviewme/git/commits{/sha}","comments_url":"https://api.github.com/repos/killpack/lita-reviewme/comments{/number}","issue_comment_url":"https://api.github.com/repos/killpack/lita-reviewme/issues/comments/{number}","contents_url":"https://api.github.com/repos/killpack/lita-reviewme/contents/{+path}","compare_url":"https://api.github.com/repos/killpack/lita-reviewme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/killpack/lita-reviewme/merges","archive_url":"https://api.github.com/repos/killpack/lita-reviewme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/killpack/lita-reviewme/downloads","issues_url":"https://api.github.com/repos/killpack/lita-reviewme/issues{/number}","pulls_url":"https://api.github.com/repos/killpack/lita-reviewme/pulls{/number}","milestones_url":"https://api.github.com/repos/killpack/lita-reviewme/milestones{/number}","notifications_url":"https://api.github.com/repos/killpack/lita-reviewme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/killpack/lita-reviewme/labels{/name}","releases_url":"https://api.github.com/repos/killpack/lita-reviewme/releases{/id}","created_at":"2015-02-18T18:46:52Z","updated_at":"2015-02-18T19:36:14Z","pushed_at":"2015-02-18T19:36:13Z","git_url":"git://github.com/killpack/lita-reviewme.git","ssh_url":"git@github.com:killpack/lita-reviewme.git","clone_url":"https://github.com/killpack/lita-reviewme.git","svn_url":"https://github.com/killpack/lita-reviewme","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"iamvery:master","ref":"master","sha":"cccd9b7b5bc896745efe92cf942d9eff6e369a85","user":{"login":"iamvery","id":79619,"avatar_url":"https://avatars.githubusercontent.com/u/79619?v=3","gravatar_id":"","url":"https://api.github.com/users/iamvery","html_url":"https://github.com/iamvery","followers_url":"https://api.github.com/users/iamvery/followers","following_url":"https://api.github.com/users/iamvery/following{/other_user}","gists_url":"https://api.github.com/users/iamvery/gists{/gist_id}","starred_url":"https://api.github.com/users/iamvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamvery/subscriptions","organizations_url":"https://api.github.com/users/iamvery/orgs","repos_url":"https://api.github.com/users/iamvery/repos","events_url":"https://api.github.com/users/iamvery/events{/privacy}","received_events_url":"https://api.github.com/users/iamvery/received_events","type":"User","site_admin":false},"repo":{"id":30335089,"name":"lita-reviewme","full_name":"iamvery/lita-reviewme","owner":{"login":"iamvery","id":79619,"avatar_url":"https://avatars.githubusercontent.com/u/79619?v=3","gravatar_id":"","url":"https://api.github.com/users/iamvery","html_url":"https://github.com/iamvery","followers_url":"https://api.github.com/users/iamvery/followers","following_url":"https://api.github.com/users/iamvery/following{/other_user}","gists_url":"https://api.github.com/users/iamvery/gists{/gist_id}","starred_url":"https://api.github.com/users/iamvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamvery/subscriptions","organizations_url":"https://api.github.com/users/iamvery/orgs","repos_url":"https://api.github.com/users/iamvery/repos","events_url":"https://api.github.com/users/iamvery/events{/privacy}","received_events_url":"https://api.github.com/users/iamvery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamvery/lita-reviewme","description":null,"fork":false,"url":"https://api.github.com/repos/iamvery/lita-reviewme","forks_url":"https://api.github.com/repos/iamvery/lita-reviewme/forks","keys_url":"https://api.github.com/repos/iamvery/lita-reviewme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamvery/lita-reviewme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamvery/lita-reviewme/teams","hooks_url":"https://api.github.com/repos/iamvery/lita-reviewme/hooks","issue_events_url":"https://api.github.com/repos/iamvery/lita-reviewme/issues/events{/number}","events_url":"https://api.github.com/repos/iamvery/lita-reviewme/events","assignees_url":"https://api.github.com/repos/iamvery/lita-reviewme/assignees{/user}","branches_url":"https://api.github.com/repos/iamvery/lita-reviewme/branches{/branch}","tags_url":"https://api.github.com/repos/iamvery/lita-reviewme/tags","blobs_url":"https://api.github.com/repos/iamvery/lita-reviewme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamvery/lita-reviewme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamvery/lita-reviewme/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamvery/lita-reviewme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamvery/lita-reviewme/statuses/{sha}","languages_url":"https://api.github.com/repos/iamvery/lita-reviewme/languages","stargazers_url":"https://api.github.com/repos/iamvery/lita-reviewme/stargazers","contributors_url":"https://api.github.com/repos/iamvery/lita-reviewme/contributors","subscribers_url":"https://api.github.com/repos/iamvery/lita-reviewme/subscribers","subscription_url":"https://api.github.com/repos/iamvery/lita-reviewme/subscription","commits_url":"https://api.github.com/repos/iamvery/lita-reviewme/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamvery/lita-reviewme/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamvery/lita-reviewme/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamvery/lita-reviewme/issues/comments/{number}","contents_url":"https://api.github.com/repos/iamvery/lita-reviewme/contents/{+path}","compare_url":"https://api.github.com/repos/iamvery/lita-reviewme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamvery/lita-reviewme/merges","archive_url":"https://api.github.com/repos/iamvery/lita-reviewme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamvery/lita-reviewme/downloads","issues_url":"https://api.github.com/repos/iamvery/lita-reviewme/issues{/number}","pulls_url":"https://api.github.com/repos/iamvery/lita-reviewme/pulls{/number}","milestones_url":"https://api.github.com/repos/iamvery/lita-reviewme/milestones{/number}","notifications_url":"https://api.github.com/repos/iamvery/lita-reviewme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamvery/lita-reviewme/labels{/name}","releases_url":"https://api.github.com/repos/iamvery/lita-reviewme/releases{/id}","created_at":"2015-02-05T03:12:25Z","updated_at":"2015-02-12T17:01:55Z","pushed_at":"2015-02-13T00:11:50Z","git_url":"git://github.com/iamvery/lita-reviewme.git","ssh_url":"git@github.com:iamvery/lita-reviewme.git","clone_url":"https://github.com/iamvery/lita-reviewme.git","svn_url":"https://github.com/iamvery/lita-reviewme","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":18,"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21"},"html":{"href":"https://github.com/iamvery/lita-reviewme/pull/21"},"issue":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/issues/21"},"comments":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/iamvery/lita-reviewme/statuses/32da5c09cc3a0ed27aee61ad0eb31478cd23c0a9"}}}}