{"action":"created","comment":{"url":"https://api.github.com/repos/babel/babel-bot/pulls/comments/172957590","pull_request_review_id":102064976,"id":172957590,"diff_hunk":"@@ -40,8 +40,20 @@ const newIssueBody = (user: string, originalUri: string, body: string) => {\n     return `Original issue submitted by @${user} in ${originalUri}\\n\\n${body}`;\n };\n \n+const isAnnoying = (body) => body === '+1' || body === '-1';\n+\n // This is super messy and needs cleanup. But not tonight :D\n export default function({ comment, issue, repository }: IssueCommentPayload) {\n+\n+    if (isAnnoying(comment.body.trim())) {\n+        log(`Removing a +1/-1 comment`, 'verbose');\n+        github.deleteIssueComment({\n+            id: comment.id,\n+            owner: repository.owner.login,\n+            repo: repository.name\n+        });","path":"src/handlers/issue_comment/created.js","position":15,"original_position":15,"commit_id":"e92448a58c88056cd38da9f88e0e244c054b0d1f","original_commit_id":"e92448a58c88056cd38da9f88e0e244c054b0d1f","user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars1.githubusercontent.com/u/588473?v=4","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"body":"Yeah the issue I realized is that it would create a reaction from the bot not the person because we don't have access","created_at":"2018-03-07T19:27:34Z","updated_at":"2018-03-07T19:27:34Z","html_url":"https://github.com/babel/babel-bot/pull/19#discussion_r172957590","pull_request_url":"https://api.github.com/repos/babel/babel-bot/pulls/19","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/babel/babel-bot/pulls/comments/172957590"},"html":{"href":"https://github.com/babel/babel-bot/pull/19#discussion_r172957590"},"pull_request":{"href":"https://api.github.com/repos/babel/babel-bot/pulls/19"}},"in_reply_to_id":103055725},"pull_request":{"url":"https://api.github.com/repos/babel/babel-bot/pulls/19","id":107766772,"html_url":"https://github.com/babel/babel-bot/pull/19","diff_url":"https://github.com/babel/babel-bot/pull/19.diff","patch_url":"https://github.com/babel/babel-bot/pull/19.patch","issue_url":"https://api.github.com/repos/babel/babel-bot/issues/19","number":19,"state":"closed","locked":false,"title":"Remove 👍","user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars1.githubusercontent.com/u/588473?v=4","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/babel/babel-bot/issues/18\r\n\r\n![1](https://cloud.githubusercontent.com/assets/588473/23290804/a1569c76-fa21-11e6-91d9-e0f5dec0f173.gif)\r\n","created_at":"2017-02-24T04:41:44Z","updated_at":"2018-03-07T19:27:34Z","closed_at":"2017-02-26T03:29:14Z","merged_at":"2017-02-26T03:29:14Z","merge_commit_sha":"dc48d51b08e3ec122a958ceb8a0be1fce7960ddf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"DrewML","id":5233399,"avatar_url":"https://avatars2.githubusercontent.com/u/5233399?v=4","gravatar_id":"","url":"https://api.github.com/users/DrewML","html_url":"https://github.com/DrewML","followers_url":"https://api.github.com/users/DrewML/followers","following_url":"https://api.github.com/users/DrewML/following{/other_user}","gists_url":"https://api.github.com/users/DrewML/gists{/gist_id}","starred_url":"https://api.github.com/users/DrewML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrewML/subscriptions","organizations_url":"https://api.github.com/users/DrewML/orgs","repos_url":"https://api.github.com/users/DrewML/repos","events_url":"https://api.github.com/users/DrewML/events{/privacy}","received_events_url":"https://api.github.com/users/DrewML/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":510355287,"url":"https://api.github.com/repos/babel/babel-bot/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/babel/babel-bot/pulls/19/commits","review_comments_url":"https://api.github.com/repos/babel/babel-bot/pulls/19/comments","review_comment_url":"https://api.github.com/repos/babel/babel-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/babel/babel-bot/issues/19/comments","statuses_url":"https://api.github.com/repos/babel/babel-bot/statuses/e92448a58c88056cd38da9f88e0e244c054b0d1f","head":{"label":"babel:remove-plus-one","ref":"remove-plus-one","sha":"e92448a58c88056cd38da9f88e0e244c054b0d1f","user":{"login":"babel","id":9637642,"avatar_url":"https://avatars1.githubusercontent.com/u/9637642?v=4","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"repo":{"id":77836357,"name":"babel-bot","full_name":"babel/babel-bot","owner":{"login":"babel","id":9637642,"avatar_url":"https://avatars1.githubusercontent.com/u/9637642?v=4","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/babel/babel-bot","description":"A helpful bot to automate common tasks on Babel Issues/PRs","fork":false,"url":"https://api.github.com/repos/babel/babel-bot","forks_url":"https://api.github.com/repos/babel/babel-bot/forks","keys_url":"https://api.github.com/repos/babel/babel-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babel/babel-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babel/babel-bot/teams","hooks_url":"https://api.github.com/repos/babel/babel-bot/hooks","issue_events_url":"https://api.github.com/repos/babel/babel-bot/issues/events{/number}","events_url":"https://api.github.com/repos/babel/babel-bot/events","assignees_url":"https://api.github.com/repos/babel/babel-bot/assignees{/user}","branches_url":"https://api.github.com/repos/babel/babel-bot/branches{/branch}","tags_url":"https://api.github.com/repos/babel/babel-bot/tags","blobs_url":"https://api.github.com/repos/babel/babel-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babel/babel-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babel/babel-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/babel/babel-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babel/babel-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/babel/babel-bot/languages","stargazers_url":"https://api.github.com/repos/babel/babel-bot/stargazers","contributors_url":"https://api.github.com/repos/babel/babel-bot/contributors","subscribers_url":"https://api.github.com/repos/babel/babel-bot/subscribers","subscription_url":"https://api.github.com/repos/babel/babel-bot/subscription","commits_url":"https://api.github.com/repos/babel/babel-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/babel/babel-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/babel/babel-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/babel/babel-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/babel/babel-bot/contents/{+path}","compare_url":"https://api.github.com/repos/babel/babel-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babel/babel-bot/merges","archive_url":"https://api.github.com/repos/babel/babel-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babel/babel-bot/downloads","issues_url":"https://api.github.com/repos/babel/babel-bot/issues{/number}","pulls_url":"https://api.github.com/repos/babel/babel-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/babel/babel-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/babel/babel-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babel/babel-bot/labels{/name}","releases_url":"https://api.github.com/repos/babel/babel-bot/releases{/id}","deployments_url":"https://api.github.com/repos/babel/babel-bot/deployments","created_at":"2017-01-02T13:45:23Z","updated_at":"2018-03-04T13:02:01Z","pushed_at":"2018-03-07T17:46:43Z","git_url":"git://github.com/babel/babel-bot.git","ssh_url":"git@github.com:babel/babel-bot.git","clone_url":"https://github.com/babel/babel-bot.git","svn_url":"https://github.com/babel/babel-bot","homepage":"","size":125,"stargazers_count":47,"watchers_count":47,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":25,"license":null,"forks":14,"open_issues":25,"watchers":47,"default_branch":"master"}},"base":{"label":"babel:master","ref":"master","sha":"bbe8d97029ba68211e41ec715bd80b1c6b92ee9d","user":{"login":"babel","id":9637642,"avatar_url":"https://avatars1.githubusercontent.com/u/9637642?v=4","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"repo":{"id":77836357,"name":"babel-bot","full_name":"babel/babel-bot","owner":{"login":"babel","id":9637642,"avatar_url":"https://avatars1.githubusercontent.com/u/9637642?v=4","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/babel/babel-bot","description":"A helpful bot to automate common tasks on Babel Issues/PRs","fork":false,"url":"https://api.github.com/repos/babel/babel-bot","forks_url":"https://api.github.com/repos/babel/babel-bot/forks","keys_url":"https://api.github.com/repos/babel/babel-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babel/babel-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babel/babel-bot/teams","hooks_url":"https://api.github.com/repos/babel/babel-bot/hooks","issue_events_url":"https://api.github.com/repos/babel/babel-bot/issues/events{/number}","events_url":"https://api.github.com/repos/babel/babel-bot/events","assignees_url":"https://api.github.com/repos/babel/babel-bot/assignees{/user}","branches_url":"https://api.github.com/repos/babel/babel-bot/branches{/branch}","tags_url":"https://api.github.com/repos/babel/babel-bot/tags","blobs_url":"https://api.github.com/repos/babel/babel-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babel/babel-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babel/babel-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/babel/babel-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babel/babel-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/babel/babel-bot/languages","stargazers_url":"https://api.github.com/repos/babel/babel-bot/stargazers","contributors_url":"https://api.github.com/repos/babel/babel-bot/contributors","subscribers_url":"https://api.github.com/repos/babel/babel-bot/subscribers","subscription_url":"https://api.github.com/repos/babel/babel-bot/subscription","commits_url":"https://api.github.com/repos/babel/babel-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/babel/babel-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/babel/babel-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/babel/babel-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/babel/babel-bot/contents/{+path}","compare_url":"https://api.github.com/repos/babel/babel-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babel/babel-bot/merges","archive_url":"https://api.github.com/repos/babel/babel-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babel/babel-bot/downloads","issues_url":"https://api.github.com/repos/babel/babel-bot/issues{/number}","pulls_url":"https://api.github.com/repos/babel/babel-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/babel/babel-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/babel/babel-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babel/babel-bot/labels{/name}","releases_url":"https://api.github.com/repos/babel/babel-bot/releases{/id}","deployments_url":"https://api.github.com/repos/babel/babel-bot/deployments","created_at":"2017-01-02T13:45:23Z","updated_at":"2018-03-04T13:02:01Z","pushed_at":"2018-03-07T17:46:43Z","git_url":"git://github.com/babel/babel-bot.git","ssh_url":"git@github.com:babel/babel-bot.git","clone_url":"https://github.com/babel/babel-bot.git","svn_url":"https://github.com/babel/babel-bot","homepage":"","size":125,"stargazers_count":47,"watchers_count":47,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":25,"license":null,"forks":14,"open_issues":25,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/babel/babel-bot/pulls/19"},"html":{"href":"https://github.com/babel/babel-bot/pull/19"},"issue":{"href":"https://api.github.com/repos/babel/babel-bot/issues/19"},"comments":{"href":"https://api.github.com/repos/babel/babel-bot/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/babel/babel-bot/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/babel/babel-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/babel/babel-bot/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/babel/babel-bot/statuses/e92448a58c88056cd38da9f88e0e244c054b0d1f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hzoo"}}