{"action":"created","comment":{"url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments/219811279","pull_request_review_id":158072142,"id":219811279,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTgxMTI3OQ==","diff_hunk":"@@ -0,0 +1,21 @@\n+// Description:\n+//  Plugin to make bot advertise devops roles. It answert to questoin about devops ninja and send notification each working day about current devops roles.Data about roles is fetched from github repository","path":"scripts/devops.js","position":2,"original_position":2,"commit_id":"c11cee158d31268888dd0cebac45df2a707d4107","original_commit_id":"c11cee158d31268888dd0cebac45df2a707d4107","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Line 2 exceeds the maximum line length of 100.","created_at":"2018-09-24T12:05:34Z","updated_at":"2018-09-24T12:05:34Z","html_url":"https://github.com/netguru/bob-the-bot/pull/64#discussion_r219811279","pull_request_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments/219811279"},"html":{"href":"https://github.com/netguru/bob-the-bot/pull/64#discussion_r219811279"},"pull_request":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64","id":216652705,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NjUyNzA1","html_url":"https://github.com/netguru/bob-the-bot/pull/64","diff_url":"https://github.com/netguru/bob-the-bot/pull/64.diff","patch_url":"https://github.com/netguru/bob-the-bot/pull/64.patch","issue_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/64","number":64,"state":"open","locked":false,"title":"Make Bob the Bot advertise devops roles","user":{"login":"krzyurb","id":11517908,"node_id":"MDQ6VXNlcjExNTE3OTA4","avatar_url":"https://avatars3.githubusercontent.com/u/11517908?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"body":"**Task description**\r\n\r\nMake Bob the Bot advertise DevOps roles. The plugin adds the command to ask for DevOps ninja. It also notifies `#devops` channel each day about all current devops roles.\r\n\r\n**Usage example**\r\n\r\n<img width=\"307\" alt=\"screen shot 2018-09-20 at 12 15 42\" src=\"https://user-images.githubusercontent.com/11517908/45814921-7020fa00-bcd7-11e8-92c5-6d0f65495ac9.png\">\r\n\r\n<img width=\"286\" alt=\"screen shot 2018-09-20 at 12 16 31\" src=\"https://user-images.githubusercontent.com/11517908/45814906-67302880-bcd7-11e8-841f-f185605a136d.png\">\r\n\r\n**BotCron**\r\n\r\nThis PR introduces also CRON actions for the bot. You can define it in scripts `index` according to code below.\r\n\r\n`botCron('example-action-label', robot);` - defines CRON action.  Hubot creates event called `example-action-label`, whitch is later handled by `robot.on('example-action-label', ...`\r\n\r\n```\r\nconst { botCron, dependenciesLocator } = require('./../../utils');\r\n\r\nmodule.exports = (robot) => {\r\n  botCron('example-action-label', robot);\r\n\r\n  robot.respond(/example/i, async (res) => {\r\n    // do something\r\n  });\r\n\r\n  robot.on('example-action-label', async (params) => {\r\n    const first = params.first; // \"blahbla\"\r\n    // do something\r\n  });\r\n};\r\n```\r\n\r\nDetails of an action should be stored in `config/cronActions.config.json`, e.g:\r\n\r\n```\r\n  \"example-action-label\": {\r\n    \"description\": \"blahblabalbhalbh\",\r\n    \"cron\": \"0 9 * * 1-5\"\r\n    \"params\" : {\r\n      \"first\": \"blahbla\",\r\n      \"second\": \"qweqweqe\"\r\n    }\r\n  }\r\n```\r\n\r\nYou can define params that will be passed to an event handler.\r\n\r\n**Jira ticket**\r\nTECH-139","created_at":"2018-09-19T14:05:58Z","updated_at":"2018-09-24T12:05:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc6b254ef42e74c869baec7da459154be79b75f5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1036593317,"node_id":"MDU6TGFiZWwxMDM2NTkzMzE3","url":"https://api.github.com/repos/netguru/bob-the-bot/labels/do%20not%20merge","name":"do not merge","color":"ff9077","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64/commits","review_comments_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64/comments","review_comment_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/64/comments","statuses_url":"https://api.github.com/repos/netguru/bob-the-bot/statuses/c11cee158d31268888dd0cebac45df2a707d4107","head":{"label":"netguru:feature/devops-roles","ref":"feature/devops-roles","sha":"c11cee158d31268888dd0cebac45df2a707d4107","user":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":141249965,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDk5NjU=","name":"bob-the-bot","full_name":"netguru/bob-the-bot","private":false,"owner":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/netguru/bob-the-bot","description":null,"fork":false,"url":"https://api.github.com/repos/netguru/bob-the-bot","forks_url":"https://api.github.com/repos/netguru/bob-the-bot/forks","keys_url":"https://api.github.com/repos/netguru/bob-the-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/bob-the-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/bob-the-bot/teams","hooks_url":"https://api.github.com/repos/netguru/bob-the-bot/hooks","issue_events_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/bob-the-bot/events","assignees_url":"https://api.github.com/repos/netguru/bob-the-bot/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/bob-the-bot/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/bob-the-bot/tags","blobs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/bob-the-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/bob-the-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/bob-the-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/bob-the-bot/languages","stargazers_url":"https://api.github.com/repos/netguru/bob-the-bot/stargazers","contributors_url":"https://api.github.com/repos/netguru/bob-the-bot/contributors","subscribers_url":"https://api.github.com/repos/netguru/bob-the-bot/subscribers","subscription_url":"https://api.github.com/repos/netguru/bob-the-bot/subscription","commits_url":"https://api.github.com/repos/netguru/bob-the-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/bob-the-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/bob-the-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/bob-the-bot/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/bob-the-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/bob-the-bot/merges","archive_url":"https://api.github.com/repos/netguru/bob-the-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/bob-the-bot/downloads","issues_url":"https://api.github.com/repos/netguru/bob-the-bot/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/bob-the-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/bob-the-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/bob-the-bot/labels{/name}","releases_url":"https://api.github.com/repos/netguru/bob-the-bot/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/bob-the-bot/deployments","created_at":"2018-07-17T07:35:10Z","updated_at":"2018-09-21T13:26:43Z","pushed_at":"2018-09-24T12:04:27Z","git_url":"git://github.com/netguru/bob-the-bot.git","ssh_url":"git@github.com:netguru/bob-the-bot.git","clone_url":"https://github.com/netguru/bob-the-bot.git","svn_url":"https://github.com/netguru/bob-the-bot","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"netguru:master","ref":"master","sha":"85367569d1a70337320bea05d1bc8000d066117e","user":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":141249965,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDk5NjU=","name":"bob-the-bot","full_name":"netguru/bob-the-bot","private":false,"owner":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/netguru/bob-the-bot","description":null,"fork":false,"url":"https://api.github.com/repos/netguru/bob-the-bot","forks_url":"https://api.github.com/repos/netguru/bob-the-bot/forks","keys_url":"https://api.github.com/repos/netguru/bob-the-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/bob-the-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/bob-the-bot/teams","hooks_url":"https://api.github.com/repos/netguru/bob-the-bot/hooks","issue_events_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/bob-the-bot/events","assignees_url":"https://api.github.com/repos/netguru/bob-the-bot/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/bob-the-bot/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/bob-the-bot/tags","blobs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/bob-the-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/bob-the-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/bob-the-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/bob-the-bot/languages","stargazers_url":"https://api.github.com/repos/netguru/bob-the-bot/stargazers","contributors_url":"https://api.github.com/repos/netguru/bob-the-bot/contributors","subscribers_url":"https://api.github.com/repos/netguru/bob-the-bot/subscribers","subscription_url":"https://api.github.com/repos/netguru/bob-the-bot/subscription","commits_url":"https://api.github.com/repos/netguru/bob-the-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/bob-the-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/bob-the-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/bob-the-bot/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/bob-the-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/bob-the-bot/merges","archive_url":"https://api.github.com/repos/netguru/bob-the-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/bob-the-bot/downloads","issues_url":"https://api.github.com/repos/netguru/bob-the-bot/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/bob-the-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/bob-the-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/bob-the-bot/labels{/name}","releases_url":"https://api.github.com/repos/netguru/bob-the-bot/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/bob-the-bot/deployments","created_at":"2018-07-17T07:35:10Z","updated_at":"2018-09-21T13:26:43Z","pushed_at":"2018-09-24T12:04:27Z","git_url":"git://github.com/netguru/bob-the-bot.git","ssh_url":"git@github.com:netguru/bob-the-bot.git","clone_url":"https://github.com/netguru/bob-the-bot.git","svn_url":"https://github.com/netguru/bob-the-bot","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64"},"html":{"href":"https://github.com/netguru/bob-the-bot/pull/64"},"issue":{"href":"https://api.github.com/repos/netguru/bob-the-bot/issues/64"},"comments":{"href":"https://api.github.com/repos/netguru/bob-the-bot/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/bob-the-bot/statuses/c11cee158d31268888dd0cebac45df2a707d4107"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codeclimate"}}