{"action":"created","comment":{"url":"https://api.github.com/repos/jobteaser/job_tomate/pulls/comments/117682831","pull_request_review_id":39407103,"id":117682831,"diff_hunk":"@@ -54,6 +54,7 @@ def run_events(webhook)\n           run_events_for_issue_deleted if issue_deleted?\n           run_events_for_issue_new_comment if issue_new_comment?\n           run_events_for_issue_changelog if issue_changelog?\n+          run_events_for_bug_without_cause if bug_without_cause?","path":"lib/job_tomate/triggers/webhooks/jira.rb","position":21,"original_position":21,"commit_id":"ea9230f9918a1388908445f8101992dab1b9b80c","original_commit_id":"ea9230f9918a1388908445f8101992dab1b9b80c","user":{"login":"rchampourlier","id":503432,"avatar_url":"https://avatars2.githubusercontent.com/u/503432?v=3","gravatar_id":"","url":"https://api.github.com/users/rchampourlier","html_url":"https://github.com/rchampourlier","followers_url":"https://api.github.com/users/rchampourlier/followers","following_url":"https://api.github.com/users/rchampourlier/following{/other_user}","gists_url":"https://api.github.com/users/rchampourlier/gists{/gist_id}","starred_url":"https://api.github.com/users/rchampourlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchampourlier/subscriptions","organizations_url":"https://api.github.com/users/rchampourlier/orgs","repos_url":"https://api.github.com/users/rchampourlier/repos","events_url":"https://api.github.com/users/rchampourlier/events{/privacy}","received_events_url":"https://api.github.com/users/rchampourlier/received_events","type":"User","site_admin":false},"body":"In the way I thought of the architecture, `bug_without_cause` would not be an event. You would instead reuse the more generic `IssueUpdatedStatus` [event](https://github.com/jobteaser/job_tomate/blob/master/lib/job_tomate/events/jira/issue_updated_status.rb).\r\n\r\nSo most of what you put in the event would be moved to your `SlackNotifyJIRABugIssueWithoutCauseUpdated`.","created_at":"2017-05-22T07:54:07Z","updated_at":"2017-05-22T07:57:07Z","html_url":"https://github.com/jobteaser/job_tomate/pull/58#discussion_r117682831","pull_request_url":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/jobteaser/job_tomate/pulls/comments/117682831"},"html":{"href":"https://github.com/jobteaser/job_tomate/pull/58#discussion_r117682831"},"pull_request":{"href":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58","id":121715826,"html_url":"https://github.com/jobteaser/job_tomate/pull/58","diff_url":"https://github.com/jobteaser/job_tomate/pull/58.diff","patch_url":"https://github.com/jobteaser/job_tomate/pull/58.patch","issue_url":"https://api.github.com/repos/jobteaser/job_tomate/issues/58","number":58,"state":"open","locked":false,"title":"Add a slack notification for bugs that don't have a cause","user":{"login":"rchampourlier","id":503432,"avatar_url":"https://avatars2.githubusercontent.com/u/503432?v=3","gravatar_id":"","url":"https://api.github.com/users/rchampourlier","html_url":"https://github.com/rchampourlier","followers_url":"https://api.github.com/users/rchampourlier/followers","following_url":"https://api.github.com/users/rchampourlier/following{/other_user}","gists_url":"https://api.github.com/users/rchampourlier/gists{/gist_id}","starred_url":"https://api.github.com/users/rchampourlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchampourlier/subscriptions","organizations_url":"https://api.github.com/users/rchampourlier/orgs","repos_url":"https://api.github.com/users/rchampourlier/repos","events_url":"https://api.github.com/users/rchampourlier/events{/privacy}","received_events_url":"https://api.github.com/users/rchampourlier/received_events","type":"User","site_admin":false},"body":"New type of trigger - an issue that is updated but as it’s a bug, it\r\nneeds a bug_cause, and it’s not the case. So, a Slack notification is\r\nsent to the assigned developer to change this sad situation.\r\nTests coming up.\r\n\r\nFixes #45 ","created_at":"2017-05-22T07:43:11Z","updated_at":"2017-05-22T07:57:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bd05b4951c3ede73c02b2a2589827a751c99818","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58/commits","review_comments_url":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58/comments","review_comment_url":"https://api.github.com/repos/jobteaser/job_tomate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jobteaser/job_tomate/issues/58/comments","statuses_url":"https://api.github.com/repos/jobteaser/job_tomate/statuses/ea9230f9918a1388908445f8101992dab1b9b80c","head":{"label":"jobteaser:issue_45_no_bug_cause","ref":"issue_45_no_bug_cause","sha":"ea9230f9918a1388908445f8101992dab1b9b80c","user":{"login":"jobteaser","id":2446482,"avatar_url":"https://avatars2.githubusercontent.com/u/2446482?v=3","gravatar_id":"","url":"https://api.github.com/users/jobteaser","html_url":"https://github.com/jobteaser","followers_url":"https://api.github.com/users/jobteaser/followers","following_url":"https://api.github.com/users/jobteaser/following{/other_user}","gists_url":"https://api.github.com/users/jobteaser/gists{/gist_id}","starred_url":"https://api.github.com/users/jobteaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobteaser/subscriptions","organizations_url":"https://api.github.com/users/jobteaser/orgs","repos_url":"https://api.github.com/users/jobteaser/repos","events_url":"https://api.github.com/users/jobteaser/events{/privacy}","received_events_url":"https://api.github.com/users/jobteaser/received_events","type":"Organization","site_admin":false},"repo":{"id":36000865,"name":"job_tomate","full_name":"jobteaser/job_tomate","owner":{"login":"jobteaser","id":2446482,"avatar_url":"https://avatars2.githubusercontent.com/u/2446482?v=3","gravatar_id":"","url":"https://api.github.com/users/jobteaser","html_url":"https://github.com/jobteaser","followers_url":"https://api.github.com/users/jobteaser/followers","following_url":"https://api.github.com/users/jobteaser/following{/other_user}","gists_url":"https://api.github.com/users/jobteaser/gists{/gist_id}","starred_url":"https://api.github.com/users/jobteaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobteaser/subscriptions","organizations_url":"https://api.github.com/users/jobteaser/orgs","repos_url":"https://api.github.com/users/jobteaser/repos","events_url":"https://api.github.com/users/jobteaser/events{/privacy}","received_events_url":"https://api.github.com/users/jobteaser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jobteaser/job_tomate","description":"Automation for us!","fork":false,"url":"https://api.github.com/repos/jobteaser/job_tomate","forks_url":"https://api.github.com/repos/jobteaser/job_tomate/forks","keys_url":"https://api.github.com/repos/jobteaser/job_tomate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jobteaser/job_tomate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jobteaser/job_tomate/teams","hooks_url":"https://api.github.com/repos/jobteaser/job_tomate/hooks","issue_events_url":"https://api.github.com/repos/jobteaser/job_tomate/issues/events{/number}","events_url":"https://api.github.com/repos/jobteaser/job_tomate/events","assignees_url":"https://api.github.com/repos/jobteaser/job_tomate/assignees{/user}","branches_url":"https://api.github.com/repos/jobteaser/job_tomate/branches{/branch}","tags_url":"https://api.github.com/repos/jobteaser/job_tomate/tags","blobs_url":"https://api.github.com/repos/jobteaser/job_tomate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jobteaser/job_tomate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jobteaser/job_tomate/git/refs{/sha}","trees_url":"https://api.github.com/repos/jobteaser/job_tomate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jobteaser/job_tomate/statuses/{sha}","languages_url":"https://api.github.com/repos/jobteaser/job_tomate/languages","stargazers_url":"https://api.github.com/repos/jobteaser/job_tomate/stargazers","contributors_url":"https://api.github.com/repos/jobteaser/job_tomate/contributors","subscribers_url":"https://api.github.com/repos/jobteaser/job_tomate/subscribers","subscription_url":"https://api.github.com/repos/jobteaser/job_tomate/subscription","commits_url":"https://api.github.com/repos/jobteaser/job_tomate/commits{/sha}","git_commits_url":"https://api.github.com/repos/jobteaser/job_tomate/git/commits{/sha}","comments_url":"https://api.github.com/repos/jobteaser/job_tomate/comments{/number}","issue_comment_url":"https://api.github.com/repos/jobteaser/job_tomate/issues/comments{/number}","contents_url":"https://api.github.com/repos/jobteaser/job_tomate/contents/{+path}","compare_url":"https://api.github.com/repos/jobteaser/job_tomate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jobteaser/job_tomate/merges","archive_url":"https://api.github.com/repos/jobteaser/job_tomate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jobteaser/job_tomate/downloads","issues_url":"https://api.github.com/repos/jobteaser/job_tomate/issues{/number}","pulls_url":"https://api.github.com/repos/jobteaser/job_tomate/pulls{/number}","milestones_url":"https://api.github.com/repos/jobteaser/job_tomate/milestones{/number}","notifications_url":"https://api.github.com/repos/jobteaser/job_tomate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jobteaser/job_tomate/labels{/name}","releases_url":"https://api.github.com/repos/jobteaser/job_tomate/releases{/id}","deployments_url":"https://api.github.com/repos/jobteaser/job_tomate/deployments","created_at":"2015-05-21T08:31:46Z","updated_at":"2017-03-04T16:27:21Z","pushed_at":"2017-05-22T07:43:12Z","git_url":"git://github.com/jobteaser/job_tomate.git","ssh_url":"git@github.com:jobteaser/job_tomate.git","clone_url":"https://github.com/jobteaser/job_tomate.git","svn_url":"https://github.com/jobteaser/job_tomate","homepage":null,"size":4195,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":27,"forks":0,"open_issues":27,"watchers":1,"default_branch":"master"}},"base":{"label":"jobteaser:master","ref":"master","sha":"304a51f8ed2f9e55d010f97e0f1a148270d3de16","user":{"login":"jobteaser","id":2446482,"avatar_url":"https://avatars2.githubusercontent.com/u/2446482?v=3","gravatar_id":"","url":"https://api.github.com/users/jobteaser","html_url":"https://github.com/jobteaser","followers_url":"https://api.github.com/users/jobteaser/followers","following_url":"https://api.github.com/users/jobteaser/following{/other_user}","gists_url":"https://api.github.com/users/jobteaser/gists{/gist_id}","starred_url":"https://api.github.com/users/jobteaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobteaser/subscriptions","organizations_url":"https://api.github.com/users/jobteaser/orgs","repos_url":"https://api.github.com/users/jobteaser/repos","events_url":"https://api.github.com/users/jobteaser/events{/privacy}","received_events_url":"https://api.github.com/users/jobteaser/received_events","type":"Organization","site_admin":false},"repo":{"id":36000865,"name":"job_tomate","full_name":"jobteaser/job_tomate","owner":{"login":"jobteaser","id":2446482,"avatar_url":"https://avatars2.githubusercontent.com/u/2446482?v=3","gravatar_id":"","url":"https://api.github.com/users/jobteaser","html_url":"https://github.com/jobteaser","followers_url":"https://api.github.com/users/jobteaser/followers","following_url":"https://api.github.com/users/jobteaser/following{/other_user}","gists_url":"https://api.github.com/users/jobteaser/gists{/gist_id}","starred_url":"https://api.github.com/users/jobteaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobteaser/subscriptions","organizations_url":"https://api.github.com/users/jobteaser/orgs","repos_url":"https://api.github.com/users/jobteaser/repos","events_url":"https://api.github.com/users/jobteaser/events{/privacy}","received_events_url":"https://api.github.com/users/jobteaser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jobteaser/job_tomate","description":"Automation for us!","fork":false,"url":"https://api.github.com/repos/jobteaser/job_tomate","forks_url":"https://api.github.com/repos/jobteaser/job_tomate/forks","keys_url":"https://api.github.com/repos/jobteaser/job_tomate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jobteaser/job_tomate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jobteaser/job_tomate/teams","hooks_url":"https://api.github.com/repos/jobteaser/job_tomate/hooks","issue_events_url":"https://api.github.com/repos/jobteaser/job_tomate/issues/events{/number}","events_url":"https://api.github.com/repos/jobteaser/job_tomate/events","assignees_url":"https://api.github.com/repos/jobteaser/job_tomate/assignees{/user}","branches_url":"https://api.github.com/repos/jobteaser/job_tomate/branches{/branch}","tags_url":"https://api.github.com/repos/jobteaser/job_tomate/tags","blobs_url":"https://api.github.com/repos/jobteaser/job_tomate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jobteaser/job_tomate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jobteaser/job_tomate/git/refs{/sha}","trees_url":"https://api.github.com/repos/jobteaser/job_tomate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jobteaser/job_tomate/statuses/{sha}","languages_url":"https://api.github.com/repos/jobteaser/job_tomate/languages","stargazers_url":"https://api.github.com/repos/jobteaser/job_tomate/stargazers","contributors_url":"https://api.github.com/repos/jobteaser/job_tomate/contributors","subscribers_url":"https://api.github.com/repos/jobteaser/job_tomate/subscribers","subscription_url":"https://api.github.com/repos/jobteaser/job_tomate/subscription","commits_url":"https://api.github.com/repos/jobteaser/job_tomate/commits{/sha}","git_commits_url":"https://api.github.com/repos/jobteaser/job_tomate/git/commits{/sha}","comments_url":"https://api.github.com/repos/jobteaser/job_tomate/comments{/number}","issue_comment_url":"https://api.github.com/repos/jobteaser/job_tomate/issues/comments{/number}","contents_url":"https://api.github.com/repos/jobteaser/job_tomate/contents/{+path}","compare_url":"https://api.github.com/repos/jobteaser/job_tomate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jobteaser/job_tomate/merges","archive_url":"https://api.github.com/repos/jobteaser/job_tomate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jobteaser/job_tomate/downloads","issues_url":"https://api.github.com/repos/jobteaser/job_tomate/issues{/number}","pulls_url":"https://api.github.com/repos/jobteaser/job_tomate/pulls{/number}","milestones_url":"https://api.github.com/repos/jobteaser/job_tomate/milestones{/number}","notifications_url":"https://api.github.com/repos/jobteaser/job_tomate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jobteaser/job_tomate/labels{/name}","releases_url":"https://api.github.com/repos/jobteaser/job_tomate/releases{/id}","deployments_url":"https://api.github.com/repos/jobteaser/job_tomate/deployments","created_at":"2015-05-21T08:31:46Z","updated_at":"2017-03-04T16:27:21Z","pushed_at":"2017-05-22T07:43:12Z","git_url":"git://github.com/jobteaser/job_tomate.git","ssh_url":"git@github.com:jobteaser/job_tomate.git","clone_url":"https://github.com/jobteaser/job_tomate.git","svn_url":"https://github.com/jobteaser/job_tomate","homepage":null,"size":4195,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":27,"forks":0,"open_issues":27,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58"},"html":{"href":"https://github.com/jobteaser/job_tomate/pull/58"},"issue":{"href":"https://api.github.com/repos/jobteaser/job_tomate/issues/58"},"comments":{"href":"https://api.github.com/repos/jobteaser/job_tomate/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/jobteaser/job_tomate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jobteaser/job_tomate/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/jobteaser/job_tomate/statuses/ea9230f9918a1388908445f8101992dab1b9b80c"}}}}
{"actor":{"display_login":"rchampourlier"}}