{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/mention-bot/pulls/comments/60003504","id":60003504,"diff_hunk":"@@ -177,16 +184,28 @@ async function work(body) {\n     return;\n   }\n \n-  github.issues.createComment({\n-    user: data.repository.owner.login, // 'fbsamples'\n-    repo: data.repository.name, // 'bot-testing'\n-    number: data.pull_request.number, // 23\n-    body: messageGenerator(\n+  var message = null;\n+  if (repoConfig.message) {\n+    // generate message using repoConfig.message if it is set","path":"server.js","position":25,"original_position":25,"commit_id":"7e5874d35f857d70ee2a238a137f2d9c42bd253a","original_commit_id":"7e5874d35f857d70ee2a238a137f2d9c42bd253a","user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"body":"Remove","created_at":"2016-04-18T03:48:22Z","updated_at":"2016-04-18T03:48:22Z","html_url":"https://github.com/facebook/mention-bot/pull/113#discussion_r60003504","pull_request_url":"https://api.github.com/repos/facebook/mention-bot/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/facebook/mention-bot/pulls/comments/60003504"},"html":{"href":"https://github.com/facebook/mention-bot/pull/113#discussion_r60003504"},"pull_request":{"href":"https://api.github.com/repos/facebook/mention-bot/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/mention-bot/pulls/113","id":66785642,"html_url":"https://github.com/facebook/mention-bot/pull/113","diff_url":"https://github.com/facebook/mention-bot/pull/113.diff","patch_url":"https://github.com/facebook/mention-bot/pull/113.patch","issue_url":"https://api.github.com/repos/facebook/mention-bot/issues/113","number":113,"state":"open","locked":false,"title":"Custom message in the config file","user":{"login":"hunkim","id":901975,"avatar_url":"https://avatars.githubusercontent.com/u/901975?v=3","gravatar_id":"","url":"https://api.github.com/users/hunkim","html_url":"https://github.com/hunkim","followers_url":"https://api.github.com/users/hunkim/followers","following_url":"https://api.github.com/users/hunkim/following{/other_user}","gists_url":"https://api.github.com/users/hunkim/gists{/gist_id}","starred_url":"https://api.github.com/users/hunkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunkim/subscriptions","organizations_url":"https://api.github.com/users/hunkim/orgs","repos_url":"https://api.github.com/users/hunkim/repos","events_url":"https://api.github.com/users/hunkim/events{/privacy}","received_events_url":"https://api.github.com/users/hunkim/received_events","type":"User","site_admin":false},"body":"- Add quick example in the README.md\r\n- Added repoConfig.message based ConfigMessageGenerator.\r\n\r\nWithout config/no message in config:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/901975/14590844/08b16598-0538-11e6-9152-c0540dff029d.png)\r\n\r\nWith config file:\r\n```\r\n{\r\n  \"maxReviewers\": 5, // Maximum  number of people to ping in the PR message, default is 3\r\n  \"numFilesToCheck\": 10, // Number of files to check against, default is 5\r\n  \"message\": \"@pullRequester, cool! @reviewers, please check this out for @pullRequester.\"\r\n}\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/901975/14590872/4db0f1ea-0538-11e6-9aff-93b7002c6976.png)","created_at":"2016-04-17T23:38:01Z","updated_at":"2016-04-18T03:48:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b84924cf10c3f3ee9aa6ab281b2c0dde1271c35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/mention-bot/pulls/113/commits","review_comments_url":"https://api.github.com/repos/facebook/mention-bot/pulls/113/comments","review_comment_url":"https://api.github.com/repos/facebook/mention-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/mention-bot/issues/113/comments","statuses_url":"https://api.github.com/repos/facebook/mention-bot/statuses/7e5874d35f857d70ee2a238a137f2d9c42bd253a","head":{"label":"DeepLearningProjects:message_in_config2","ref":"message_in_config2","sha":"7e5874d35f857d70ee2a238a137f2d9c42bd253a","user":{"login":"DeepLearningProjects","id":18358154,"avatar_url":"https://avatars.githubusercontent.com/u/18358154?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepLearningProjects","html_url":"https://github.com/DeepLearningProjects","followers_url":"https://api.github.com/users/DeepLearningProjects/followers","following_url":"https://api.github.com/users/DeepLearningProjects/following{/other_user}","gists_url":"https://api.github.com/users/DeepLearningProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepLearningProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepLearningProjects/subscriptions","organizations_url":"https://api.github.com/users/DeepLearningProjects/orgs","repos_url":"https://api.github.com/users/DeepLearningProjects/repos","events_url":"https://api.github.com/users/DeepLearningProjects/events{/privacy}","received_events_url":"https://api.github.com/users/DeepLearningProjects/received_events","type":"Organization","site_admin":false},"repo":{"id":56428228,"name":"mention-bot","full_name":"DeepLearningProjects/mention-bot","owner":{"login":"DeepLearningProjects","id":18358154,"avatar_url":"https://avatars.githubusercontent.com/u/18358154?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepLearningProjects","html_url":"https://github.com/DeepLearningProjects","followers_url":"https://api.github.com/users/DeepLearningProjects/followers","following_url":"https://api.github.com/users/DeepLearningProjects/following{/other_user}","gists_url":"https://api.github.com/users/DeepLearningProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepLearningProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepLearningProjects/subscriptions","organizations_url":"https://api.github.com/users/DeepLearningProjects/orgs","repos_url":"https://api.github.com/users/DeepLearningProjects/repos","events_url":"https://api.github.com/users/DeepLearningProjects/events{/privacy}","received_events_url":"https://api.github.com/users/DeepLearningProjects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DeepLearningProjects/mention-bot","description":"Automatically mention potential reviewers on pull requests.","fork":true,"url":"https://api.github.com/repos/DeepLearningProjects/mention-bot","forks_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/forks","keys_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/teams","hooks_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/hooks","issue_events_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/issues/events{/number}","events_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/events","assignees_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/assignees{/user}","branches_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/branches{/branch}","tags_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/tags","blobs_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/languages","stargazers_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/stargazers","contributors_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/contributors","subscribers_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/subscribers","subscription_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/subscription","commits_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/contents/{+path}","compare_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/merges","archive_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/downloads","issues_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/issues{/number}","pulls_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/labels{/name}","releases_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/releases{/id}","deployments_url":"https://api.github.com/repos/DeepLearningProjects/mention-bot/deployments","created_at":"2016-04-17T09:13:49Z","updated_at":"2016-04-17T09:13:50Z","pushed_at":"2016-04-17T23:42:38Z","git_url":"git://github.com/DeepLearningProjects/mention-bot.git","ssh_url":"git@github.com:DeepLearningProjects/mention-bot.git","clone_url":"https://github.com/DeepLearningProjects/mention-bot.git","svn_url":"https://github.com/DeepLearningProjects/mention-bot","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"facebook:master","ref":"master","sha":"c127c0c869d57d5a2cf2db4e362d9e59ecdbd582","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":45750356,"name":"mention-bot","full_name":"facebook/mention-bot","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/mention-bot","description":"Automatically mention potential reviewers on pull requests.","fork":false,"url":"https://api.github.com/repos/facebook/mention-bot","forks_url":"https://api.github.com/repos/facebook/mention-bot/forks","keys_url":"https://api.github.com/repos/facebook/mention-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/mention-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/mention-bot/teams","hooks_url":"https://api.github.com/repos/facebook/mention-bot/hooks","issue_events_url":"https://api.github.com/repos/facebook/mention-bot/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/mention-bot/events","assignees_url":"https://api.github.com/repos/facebook/mention-bot/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/mention-bot/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/mention-bot/tags","blobs_url":"https://api.github.com/repos/facebook/mention-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/mention-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/mention-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/mention-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/mention-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/mention-bot/languages","stargazers_url":"https://api.github.com/repos/facebook/mention-bot/stargazers","contributors_url":"https://api.github.com/repos/facebook/mention-bot/contributors","subscribers_url":"https://api.github.com/repos/facebook/mention-bot/subscribers","subscription_url":"https://api.github.com/repos/facebook/mention-bot/subscription","commits_url":"https://api.github.com/repos/facebook/mention-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/mention-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/mention-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/mention-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/mention-bot/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/mention-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/mention-bot/merges","archive_url":"https://api.github.com/repos/facebook/mention-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/mention-bot/downloads","issues_url":"https://api.github.com/repos/facebook/mention-bot/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/mention-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/mention-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/mention-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/mention-bot/labels{/name}","releases_url":"https://api.github.com/repos/facebook/mention-bot/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/mention-bot/deployments","created_at":"2015-11-07T19:07:58Z","updated_at":"2016-04-18T03:20:53Z","pushed_at":"2016-04-17T23:42:39Z","git_url":"git://github.com/facebook/mention-bot.git","ssh_url":"git@github.com:facebook/mention-bot.git","clone_url":"https://github.com/facebook/mention-bot.git","svn_url":"https://github.com/facebook/mention-bot","homepage":null,"size":248,"stargazers_count":1996,"watchers_count":1996,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":8,"forks":107,"open_issues":8,"watchers":1996,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/mention-bot/pulls/113"},"html":{"href":"https://github.com/facebook/mention-bot/pull/113"},"issue":{"href":"https://api.github.com/repos/facebook/mention-bot/issues/113"},"comments":{"href":"https://api.github.com/repos/facebook/mention-bot/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/mention-bot/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/mention-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/mention-bot/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/mention-bot/statuses/7e5874d35f857d70ee2a238a137f2d9c42bd253a"}}}}