GitHub PullRequestReviewCommentEvent at 2014-10-22 15:42:36
Repository: testbot
Actor: linqiu
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/linqiu/testbot/pulls/comments/19222123","id":19222123,"diff_hunk":"@@ -27,19 +27,22 @@ module.exports = (robot) ->\n     message_payload\n \n   vote_helper = (msg, are_we_voting, outcome) ->\n-    if(are_we_voting)\n-      message_payload = \"#{outcome} vote registered from: \"+msg.message.user.name\n-      existing_vote = _.findWhere(BIG_VOTE, {user: msg.message.user.name})\n-      if(existing_vote)\n-        unless existing_vote.vote is outcome\n-          message_payload += '\\nUh oh, '+msg.message.user.name+ ' switched his/her vote!'\n+    if (msg.message.user.name == \"jared\")\n+      message_payload = \"Jared doesn't vote\"","path":"scripts/vote.coffee","position":11,"original_position":11,"commit_id":"9b0468efa32c6b4961673236147e594cf46d94e0","original_commit_id":"9b0468efa32c6b4961673236147e594cf46d94e0","user":{"login":"linqiu","id":1355326,"avatar_url":"https://avatars.githubusercontent.com/u/1355326?v=2","gravatar_id":"","url":"https://api.github.com/users/linqiu","html_url":"https://github.com/linqiu","followers_url":"https://api.github.com/users/linqiu/followers","following_url":"https://api.github.com/users/linqiu/following{/other_user}","gists_url":"https://api.github.com/users/linqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/linqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linqiu/subscriptions","organizations_url":"https://api.github.com/users/linqiu/orgs","repos_url":"https://api.github.com/users/linqiu/repos","events_url":"https://api.github.com/users/linqiu/events{/privacy}","received_events_url":"https://api.github.com/users/linqiu/received_events","type":"User","site_admin":false},"body":"lol yiss, :+1: ","created_at":"2014-10-22T15:42:36Z","updated_at":"2014-10-22T15:42:36Z","html_url":"https://github.com/linqiu/testbot/pull/1#discussion_r19222123","pull_request_url":"https://api.github.com/repos/linqiu/testbot/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/linqiu/testbot/pulls/comments/19222123"},"html":{"href":"https://github.com/linqiu/testbot/pull/1#discussion_r19222123"},"pull_request":{"href":"https://api.github.com/repos/linqiu/testbot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/linqiu/testbot/pulls/1","id":23164645,"html_url":"https://github.com/linqiu/testbot/pull/1","diff_url":"https://github.com/linqiu/testbot/pull/1.diff","patch_url":"https://github.com/linqiu/testbot/pull/1.patch","issue_url":"https://api.github.com/repos/linqiu/testbot/issues/1","number":1,"state":"open","locked":false,"title":"Fix bugs","user":{"login":"alexpjohnson","id":1986017,"avatar_url":"https://avatars.githubusercontent.com/u/1986017?v=2","gravatar_id":"","url":"https://api.github.com/users/alexpjohnson","html_url":"https://github.com/alexpjohnson","followers_url":"https://api.github.com/users/alexpjohnson/followers","following_url":"https://api.github.com/users/alexpjohnson/following{/other_user}","gists_url":"https://api.github.com/users/alexpjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpjohnson/subscriptions","organizations_url":"https://api.github.com/users/alexpjohnson/orgs","repos_url":"https://api.github.com/users/alexpjohnson/repos","events_url":"https://api.github.com/users/alexpjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/alexpjohnson/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-22T15:11:58Z","updated_at":"2014-10-22T15:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22bf84c534bb7e9198fc959abcb28303febfb5cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/linqiu/testbot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/linqiu/testbot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/linqiu/testbot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/linqiu/testbot/issues/1/comments","statuses_url":"https://api.github.com/repos/linqiu/testbot/statuses/9b0468efa32c6b4961673236147e594cf46d94e0","head":{"label":"alexpjohnson:master","ref":"master","sha":"9b0468efa32c6b4961673236147e594cf46d94e0","user":{"login":"alexpjohnson","id":1986017,"avatar_url":"https://avatars.githubusercontent.com/u/1986017?v=2","gravatar_id":"","url":"https://api.github.com/users/alexpjohnson","html_url":"https://github.com/alexpjohnson","followers_url":"https://api.github.com/users/alexpjohnson/followers","following_url":"https://api.github.com/users/alexpjohnson/following{/other_user}","gists_url":"https://api.github.com/users/alexpjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpjohnson/subscriptions","organizations_url":"https://api.github.com/users/alexpjohnson/orgs","repos_url":"https://api.github.com/users/alexpjohnson/repos","events_url":"https://api.github.com/users/alexpjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/alexpjohnson/received_events","type":"User","site_admin":false},"repo":{"id":25587877,"name":"testbot","full_name":"alexpjohnson/testbot","owner":{"login":"alexpjohnson","id":1986017,"avatar_url":"https://avatars.githubusercontent.com/u/1986017?v=2","gravatar_id":"","url":"https://api.github.com/users/alexpjohnson","html_url":"https://github.com/alexpjohnson","followers_url":"https://api.github.com/users/alexpjohnson/followers","following_url":"https://api.github.com/users/alexpjohnson/following{/other_user}","gists_url":"https://api.github.com/users/alexpjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpjohnson/subscriptions","organizations_url":"https://api.github.com/users/alexpjohnson/orgs","repos_url":"https://api.github.com/users/alexpjohnson/repos","events_url":"https://api.github.com/users/alexpjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/alexpjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexpjohnson/testbot","description":"Testing for hubot scripts","fork":true,"url":"https://api.github.com/repos/alexpjohnson/testbot","forks_url":"https://api.github.com/repos/alexpjohnson/testbot/forks","keys_url":"https://api.github.com/repos/alexpjohnson/testbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexpjohnson/testbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexpjohnson/testbot/teams","hooks_url":"https://api.github.com/repos/alexpjohnson/testbot/hooks","issue_events_url":"https://api.github.com/repos/alexpjohnson/testbot/issues/events{/number}","events_url":"https://api.github.com/repos/alexpjohnson/testbot/events","assignees_url":"https://api.github.com/repos/alexpjohnson/testbot/assignees{/user}","branches_url":"https://api.github.com/repos/alexpjohnson/testbot/branches{/branch}","tags_url":"https://api.github.com/repos/alexpjohnson/testbot/tags","blobs_url":"https://api.github.com/repos/alexpjohnson/testbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexpjohnson/testbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexpjohnson/testbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexpjohnson/testbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexpjohnson/testbot/statuses/{sha}","languages_url":"https://api.github.com/repos/alexpjohnson/testbot/languages","stargazers_url":"https://api.github.com/repos/alexpjohnson/testbot/stargazers","contributors_url":"https://api.github.com/repos/alexpjohnson/testbot/contributors","subscribers_url":"https://api.github.com/repos/alexpjohnson/testbot/subscribers","subscription_url":"https://api.github.com/repos/alexpjohnson/testbot/subscription","commits_url":"https://api.github.com/repos/alexpjohnson/testbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexpjohnson/testbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexpjohnson/testbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexpjohnson/testbot/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexpjohnson/testbot/contents/{+path}","compare_url":"https://api.github.com/repos/alexpjohnson/testbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexpjohnson/testbot/merges","archive_url":"https://api.github.com/repos/alexpjohnson/testbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexpjohnson/testbot/downloads","issues_url":"https://api.github.com/repos/alexpjohnson/testbot/issues{/number}","pulls_url":"https://api.github.com/repos/alexpjohnson/testbot/pulls{/number}","milestones_url":"https://api.github.com/repos/alexpjohnson/testbot/milestones{/number}","notifications_url":"https://api.github.com/repos/alexpjohnson/testbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexpjohnson/testbot/labels{/name}","releases_url":"https://api.github.com/repos/alexpjohnson/testbot/releases{/id}","created_at":"2014-10-22T15:05:20Z","updated_at":"2014-10-22T15:11:08Z","pushed_at":"2014-10-22T15:11:08Z","git_url":"git://github.com/alexpjohnson/testbot.git","ssh_url":"git@github.com:alexpjohnson/testbot.git","clone_url":"https://github.com/alexpjohnson/testbot.git","svn_url":"https://github.com/alexpjohnson/testbot","homepage":null,"size":107,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"linqiu:master","ref":"master","sha":"faa4114f1ffac20de394e0537a35354e18e9d6f3","user":{"login":"linqiu","id":1355326,"avatar_url":"https://avatars.githubusercontent.com/u/1355326?v=2","gravatar_id":"","url":"https://api.github.com/users/linqiu","html_url":"https://github.com/linqiu","followers_url":"https://api.github.com/users/linqiu/followers","following_url":"https://api.github.com/users/linqiu/following{/other_user}","gists_url":"https://api.github.com/users/linqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/linqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linqiu/subscriptions","organizations_url":"https://api.github.com/users/linqiu/orgs","repos_url":"https://api.github.com/users/linqiu/repos","events_url":"https://api.github.com/users/linqiu/events{/privacy}","received_events_url":"https://api.github.com/users/linqiu/received_events","type":"User","site_admin":false},"repo":{"id":24810422,"name":"testbot","full_name":"linqiu/testbot","owner":{"login":"linqiu","id":1355326,"avatar_url":"https://avatars.githubusercontent.com/u/1355326?v=2","gravatar_id":"","url":"https://api.github.com/users/linqiu","html_url":"https://github.com/linqiu","followers_url":"https://api.github.com/users/linqiu/followers","following_url":"https://api.github.com/users/linqiu/following{/other_user}","gists_url":"https://api.github.com/users/linqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/linqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linqiu/subscriptions","organizations_url":"https://api.github.com/users/linqiu/orgs","repos_url":"https://api.github.com/users/linqiu/repos","events_url":"https://api.github.com/users/linqiu/events{/privacy}","received_events_url":"https://api.github.com/users/linqiu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/linqiu/testbot","description":"Testing for hubot scripts","fork":false,"url":"https://api.github.com/repos/linqiu/testbot","forks_url":"https://api.github.com/repos/linqiu/testbot/forks","keys_url":"https://api.github.com/repos/linqiu/testbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linqiu/testbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linqiu/testbot/teams","hooks_url":"https://api.github.com/repos/linqiu/testbot/hooks","issue_events_url":"https://api.github.com/repos/linqiu/testbot/issues/events{/number}","events_url":"https://api.github.com/repos/linqiu/testbot/events","assignees_url":"https://api.github.com/repos/linqiu/testbot/assignees{/user}","branches_url":"https://api.github.com/repos/linqiu/testbot/branches{/branch}","tags_url":"https://api.github.com/repos/linqiu/testbot/tags","blobs_url":"https://api.github.com/repos/linqiu/testbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linqiu/testbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linqiu/testbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/linqiu/testbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linqiu/testbot/statuses/{sha}","languages_url":"https://api.github.com/repos/linqiu/testbot/languages","stargazers_url":"https://api.github.com/repos/linqiu/testbot/stargazers","contributors_url":"https://api.github.com/repos/linqiu/testbot/contributors","subscribers_url":"https://api.github.com/repos/linqiu/testbot/subscribers","subscription_url":"https://api.github.com/repos/linqiu/testbot/subscription","commits_url":"https://api.github.com/repos/linqiu/testbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/linqiu/testbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/linqiu/testbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/linqiu/testbot/issues/comments/{number}","contents_url":"https://api.github.com/repos/linqiu/testbot/contents/{+path}","compare_url":"https://api.github.com/repos/linqiu/testbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linqiu/testbot/merges","archive_url":"https://api.github.com/repos/linqiu/testbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linqiu/testbot/downloads","issues_url":"https://api.github.com/repos/linqiu/testbot/issues{/number}","pulls_url":"https://api.github.com/repos/linqiu/testbot/pulls{/number}","milestones_url":"https://api.github.com/repos/linqiu/testbot/milestones{/number}","notifications_url":"https://api.github.com/repos/linqiu/testbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linqiu/testbot/labels{/name}","releases_url":"https://api.github.com/repos/linqiu/testbot/releases{/id}","created_at":"2014-10-05T07:03:46Z","updated_at":"2014-10-05T07:04:09Z","pushed_at":"2014-10-05T09:46:54Z","git_url":"git://github.com/linqiu/testbot.git","ssh_url":"git@github.com:linqiu/testbot.git","clone_url":"https://github.com/linqiu/testbot.git","svn_url":"https://github.com/linqiu/testbot","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linqiu/testbot/pulls/1"},"html":{"href":"https://github.com/linqiu/testbot/pull/1"},"issue":{"href":"https://api.github.com/repos/linqiu/testbot/issues/1"},"comments":{"href":"https://api.github.com/repos/linqiu/testbot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/linqiu/testbot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/linqiu/testbot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/linqiu/testbot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/linqiu/testbot/statuses/9b0468efa32c6b4961673236147e594cf46d94e0"}}}}