{"action":"created","comment":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/195227107","pull_request_review_id":128550434,"id":195227107,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTIyNzEwNw==","diff_hunk":"@@ -145,3 +123,52 @@ func (t *versionTriggers) generate(sub *event.Subscription) (*notification.Notif\n \n \treturn notification.New(t.event, sub.Trigger, &sub.Subscriber, payload)\n }\n+\n+func (t *versionTriggers) versionOutcome(sub *event.Subscription) (*notification.Notification, error) {\n+\tif t.data.Status != evergreen.VersionSucceeded && t.data.Status != evergreen.VersionFailed {\n+\t\treturn nil, nil\n+\t}\n+\n+\treturn t.generate(sub)\n+}\n+\n+func (t *versionTriggers) versionFailure(sub *event.Subscription) (*notification.Notification, error) {\n+\tif t.data.Status != evergreen.VersionFailed {\n+\t\treturn nil, nil\n+\t}\n+\n+\treturn t.generate(sub)\n+}\n+\n+func (t *versionTriggers) versionSuccess(sub *event.Subscription) (*notification.Notification, error) {\n+\tif t.data.Status != evergreen.VersionSucceeded {\n+\t\treturn nil, nil\n+\t}\n+\n+\treturn t.generate(sub)\n+}\n+\n+func (t *versionTriggers) versionRegression(sub *event.Subscription) (*notification.Notification, error) {\n+\tif t.data.Status != evergreen.VersionFailed {\n+\t\treturn nil, nil\n+\t}\n+\n+\tversionTasks, err := task.Find(task.ByVersion(t.version.Id))\n+\tif err != nil {\n+\t\treturn nil, errors.Wrap(err, \"error retrieving tasks for version\")\n+\t}\n+\tcount := 0 // TODO: maybe use this count in the message somewhere?\n+\tfor _, t := range versionTasks {\n+\t\tshouldNotify, _, err := isTaskRegression(&t)","path":"model/trigger/version.go","position":null,"original_position":93,"commit_id":"4c7e41500926039b07d9f19f7aa70cd4cabae2f7","original_commit_id":"94944728245f7e119910ba1e8c9014657778af7c","user":{"login":"john-m-liu","id":29384396,"node_id":"MDQ6VXNlcjI5Mzg0Mzk2","avatar_url":"https://avatars2.githubusercontent.com/u/29384396?v=4","gravatar_id":"","url":"https://api.github.com/users/john-m-liu","html_url":"https://github.com/john-m-liu","followers_url":"https://api.github.com/users/john-m-liu/followers","following_url":"https://api.github.com/users/john-m-liu/following{/other_user}","gists_url":"https://api.github.com/users/john-m-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/john-m-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-m-liu/subscriptions","organizations_url":"https://api.github.com/users/john-m-liu/orgs","repos_url":"https://api.github.com/users/john-m-liu/repos","events_url":"https://api.github.com/users/john-m-liu/events{/privacy}","received_events_url":"https://api.github.com/users/john-m-liu/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-06-13T20:36:39Z","updated_at":"2018-06-13T20:37:33Z","html_url":"https://github.com/evergreen-ci/evergreen/pull/1251#discussion_r195227107","pull_request_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/195227107"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1251#discussion_r195227107"},"pull_request":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251"}},"in_reply_to_id":195209179},"pull_request":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251","id":194666345,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NjY2MzQ1","html_url":"https://github.com/evergreen-ci/evergreen/pull/1251","diff_url":"https://github.com/evergreen-ci/evergreen/pull/1251.diff","patch_url":"https://github.com/evergreen-ci/evergreen/pull/1251.patch","issue_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1251","number":1251,"state":"open","locked":false,"title":"EVG-3506 add version regression trigger","user":{"login":"john-m-liu","id":29384396,"node_id":"MDQ6VXNlcjI5Mzg0Mzk2","avatar_url":"https://avatars2.githubusercontent.com/u/29384396?v=4","gravatar_id":"","url":"https://api.github.com/users/john-m-liu","html_url":"https://github.com/john-m-liu","followers_url":"https://api.github.com/users/john-m-liu/followers","following_url":"https://api.github.com/users/john-m-liu/following{/other_user}","gists_url":"https://api.github.com/users/john-m-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/john-m-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-m-liu/subscriptions","organizations_url":"https://api.github.com/users/john-m-liu/orgs","repos_url":"https://api.github.com/users/john-m-liu/repos","events_url":"https://api.github.com/users/john-m-liu/events{/privacy}","received_events_url":"https://api.github.com/users/john-m-liu/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-13T17:52:38Z","updated_at":"2018-06-13T20:37:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29178fa734714beb46421a0558acc431e28e93c0","assignee":{"login":"bsamek","id":624531,"node_id":"MDQ6VXNlcjYyNDUzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/624531?v=4","gravatar_id":"","url":"https://api.github.com/users/bsamek","html_url":"https://github.com/bsamek","followers_url":"https://api.github.com/users/bsamek/followers","following_url":"https://api.github.com/users/bsamek/following{/other_user}","gists_url":"https://api.github.com/users/bsamek/gists{/gist_id}","starred_url":"https://api.github.com/users/bsamek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsamek/subscriptions","organizations_url":"https://api.github.com/users/bsamek/orgs","repos_url":"https://api.github.com/users/bsamek/repos","events_url":"https://api.github.com/users/bsamek/events{/privacy}","received_events_url":"https://api.github.com/users/bsamek/received_events","type":"User","site_admin":false},"assignees":[{"login":"bsamek","id":624531,"node_id":"MDQ6VXNlcjYyNDUzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/624531?v=4","gravatar_id":"","url":"https://api.github.com/users/bsamek","html_url":"https://github.com/bsamek","followers_url":"https://api.github.com/users/bsamek/followers","following_url":"https://api.github.com/users/bsamek/following{/other_user}","gists_url":"https://api.github.com/users/bsamek/gists{/gist_id}","starred_url":"https://api.github.com/users/bsamek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsamek/subscriptions","organizations_url":"https://api.github.com/users/bsamek/orgs","repos_url":"https://api.github.com/users/bsamek/repos","events_url":"https://api.github.com/users/bsamek/events{/privacy}","received_events_url":"https://api.github.com/users/bsamek/received_events","type":"User","site_admin":false},{"login":"richardsamuels","id":1666322,"node_id":"MDQ6VXNlcjE2NjYzMjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1666322?v=4","gravatar_id":"","url":"https://api.github.com/users/richardsamuels","html_url":"https://github.com/richardsamuels","followers_url":"https://api.github.com/users/richardsamuels/followers","following_url":"https://api.github.com/users/richardsamuels/following{/other_user}","gists_url":"https://api.github.com/users/richardsamuels/gists{/gist_id}","starred_url":"https://api.github.com/users/richardsamuels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardsamuels/subscriptions","organizations_url":"https://api.github.com/users/richardsamuels/orgs","repos_url":"https://api.github.com/users/richardsamuels/repos","events_url":"https://api.github.com/users/richardsamuels/events{/privacy}","received_events_url":"https://api.github.com/users/richardsamuels/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251/commits","review_comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251/comments","review_comment_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1251/comments","statuses_url":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/4c7e41500926039b07d9f19f7aa70cd4cabae2f7","head":{"label":"john-m-liu:EVG-3506","ref":"EVG-3506","sha":"4c7e41500926039b07d9f19f7aa70cd4cabae2f7","user":{"login":"john-m-liu","id":29384396,"node_id":"MDQ6VXNlcjI5Mzg0Mzk2","avatar_url":"https://avatars2.githubusercontent.com/u/29384396?v=4","gravatar_id":"","url":"https://api.github.com/users/john-m-liu","html_url":"https://github.com/john-m-liu","followers_url":"https://api.github.com/users/john-m-liu/followers","following_url":"https://api.github.com/users/john-m-liu/following{/other_user}","gists_url":"https://api.github.com/users/john-m-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/john-m-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-m-liu/subscriptions","organizations_url":"https://api.github.com/users/john-m-liu/orgs","repos_url":"https://api.github.com/users/john-m-liu/repos","events_url":"https://api.github.com/users/john-m-liu/events{/privacy}","received_events_url":"https://api.github.com/users/john-m-liu/received_events","type":"User","site_admin":false},"repo":{"id":100648346,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA2NDgzNDY=","name":"evergreen","full_name":"john-m-liu/evergreen","owner":{"login":"john-m-liu","id":29384396,"node_id":"MDQ6VXNlcjI5Mzg0Mzk2","avatar_url":"https://avatars2.githubusercontent.com/u/29384396?v=4","gravatar_id":"","url":"https://api.github.com/users/john-m-liu","html_url":"https://github.com/john-m-liu","followers_url":"https://api.github.com/users/john-m-liu/followers","following_url":"https://api.github.com/users/john-m-liu/following{/other_user}","gists_url":"https://api.github.com/users/john-m-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/john-m-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-m-liu/subscriptions","organizations_url":"https://api.github.com/users/john-m-liu/orgs","repos_url":"https://api.github.com/users/john-m-liu/repos","events_url":"https://api.github.com/users/john-m-liu/events{/privacy}","received_events_url":"https://api.github.com/users/john-m-liu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/john-m-liu/evergreen","description":"A Distributed Continuous Integration System from MongoDB","fork":true,"url":"https://api.github.com/repos/john-m-liu/evergreen","forks_url":"https://api.github.com/repos/john-m-liu/evergreen/forks","keys_url":"https://api.github.com/repos/john-m-liu/evergreen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/john-m-liu/evergreen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/john-m-liu/evergreen/teams","hooks_url":"https://api.github.com/repos/john-m-liu/evergreen/hooks","issue_events_url":"https://api.github.com/repos/john-m-liu/evergreen/issues/events{/number}","events_url":"https://api.github.com/repos/john-m-liu/evergreen/events","assignees_url":"https://api.github.com/repos/john-m-liu/evergreen/assignees{/user}","branches_url":"https://api.github.com/repos/john-m-liu/evergreen/branches{/branch}","tags_url":"https://api.github.com/repos/john-m-liu/evergreen/tags","blobs_url":"https://api.github.com/repos/john-m-liu/evergreen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/john-m-liu/evergreen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/john-m-liu/evergreen/git/refs{/sha}","trees_url":"https://api.github.com/repos/john-m-liu/evergreen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/john-m-liu/evergreen/statuses/{sha}","languages_url":"https://api.github.com/repos/john-m-liu/evergreen/languages","stargazers_url":"https://api.github.com/repos/john-m-liu/evergreen/stargazers","contributors_url":"https://api.github.com/repos/john-m-liu/evergreen/contributors","subscribers_url":"https://api.github.com/repos/john-m-liu/evergreen/subscribers","subscription_url":"https://api.github.com/repos/john-m-liu/evergreen/subscription","commits_url":"https://api.github.com/repos/john-m-liu/evergreen/commits{/sha}","git_commits_url":"https://api.github.com/repos/john-m-liu/evergreen/git/commits{/sha}","comments_url":"https://api.github.com/repos/john-m-liu/evergreen/comments{/number}","issue_comment_url":"https://api.github.com/repos/john-m-liu/evergreen/issues/comments{/number}","contents_url":"https://api.github.com/repos/john-m-liu/evergreen/contents/{+path}","compare_url":"https://api.github.com/repos/john-m-liu/evergreen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/john-m-liu/evergreen/merges","archive_url":"https://api.github.com/repos/john-m-liu/evergreen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/john-m-liu/evergreen/downloads","issues_url":"https://api.github.com/repos/john-m-liu/evergreen/issues{/number}","pulls_url":"https://api.github.com/repos/john-m-liu/evergreen/pulls{/number}","milestones_url":"https://api.github.com/repos/john-m-liu/evergreen/milestones{/number}","notifications_url":"https://api.github.com/repos/john-m-liu/evergreen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/john-m-liu/evergreen/labels{/name}","releases_url":"https://api.github.com/repos/john-m-liu/evergreen/releases{/id}","deployments_url":"https://api.github.com/repos/john-m-liu/evergreen/deployments","created_at":"2017-08-17T21:56:25Z","updated_at":"2017-08-17T21:56:29Z","pushed_at":"2018-06-13T20:37:31Z","git_url":"git://github.com/john-m-liu/evergreen.git","ssh_url":"git@github.com:john-m-liu/evergreen.git","clone_url":"https://github.com/john-m-liu/evergreen.git","svn_url":"https://github.com/john-m-liu/evergreen","homepage":"http://evergreen.mongodb.com","size":53314,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"evergreen-ci:master","ref":"master","sha":"4bd3a6a53f6c072a3da10c40b27e034580b0b400","user":{"login":"evergreen-ci","id":10089490,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDg5NDkw","avatar_url":"https://avatars3.githubusercontent.com/u/10089490?v=4","gravatar_id":"","url":"https://api.github.com/users/evergreen-ci","html_url":"https://github.com/evergreen-ci","followers_url":"https://api.github.com/users/evergreen-ci/followers","following_url":"https://api.github.com/users/evergreen-ci/following{/other_user}","gists_url":"https://api.github.com/users/evergreen-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/evergreen-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evergreen-ci/subscriptions","organizations_url":"https://api.github.com/users/evergreen-ci/orgs","repos_url":"https://api.github.com/users/evergreen-ci/repos","events_url":"https://api.github.com/users/evergreen-ci/events{/privacy}","received_events_url":"https://api.github.com/users/evergreen-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":36385798,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM4NTc5OA==","name":"evergreen","full_name":"evergreen-ci/evergreen","owner":{"login":"evergreen-ci","id":10089490,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDg5NDkw","avatar_url":"https://avatars3.githubusercontent.com/u/10089490?v=4","gravatar_id":"","url":"https://api.github.com/users/evergreen-ci","html_url":"https://github.com/evergreen-ci","followers_url":"https://api.github.com/users/evergreen-ci/followers","following_url":"https://api.github.com/users/evergreen-ci/following{/other_user}","gists_url":"https://api.github.com/users/evergreen-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/evergreen-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evergreen-ci/subscriptions","organizations_url":"https://api.github.com/users/evergreen-ci/orgs","repos_url":"https://api.github.com/users/evergreen-ci/repos","events_url":"https://api.github.com/users/evergreen-ci/events{/privacy}","received_events_url":"https://api.github.com/users/evergreen-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evergreen-ci/evergreen","description":"A Distributed Continuous Integration System from MongoDB","fork":false,"url":"https://api.github.com/repos/evergreen-ci/evergreen","forks_url":"https://api.github.com/repos/evergreen-ci/evergreen/forks","keys_url":"https://api.github.com/repos/evergreen-ci/evergreen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evergreen-ci/evergreen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evergreen-ci/evergreen/teams","hooks_url":"https://api.github.com/repos/evergreen-ci/evergreen/hooks","issue_events_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/events{/number}","events_url":"https://api.github.com/repos/evergreen-ci/evergreen/events","assignees_url":"https://api.github.com/repos/evergreen-ci/evergreen/assignees{/user}","branches_url":"https://api.github.com/repos/evergreen-ci/evergreen/branches{/branch}","tags_url":"https://api.github.com/repos/evergreen-ci/evergreen/tags","blobs_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/refs{/sha}","trees_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/{sha}","languages_url":"https://api.github.com/repos/evergreen-ci/evergreen/languages","stargazers_url":"https://api.github.com/repos/evergreen-ci/evergreen/stargazers","contributors_url":"https://api.github.com/repos/evergreen-ci/evergreen/contributors","subscribers_url":"https://api.github.com/repos/evergreen-ci/evergreen/subscribers","subscription_url":"https://api.github.com/repos/evergreen-ci/evergreen/subscription","commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/commits{/sha}","git_commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/commits{/sha}","comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/comments{/number}","issue_comment_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/comments{/number}","contents_url":"https://api.github.com/repos/evergreen-ci/evergreen/contents/{+path}","compare_url":"https://api.github.com/repos/evergreen-ci/evergreen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evergreen-ci/evergreen/merges","archive_url":"https://api.github.com/repos/evergreen-ci/evergreen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evergreen-ci/evergreen/downloads","issues_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues{/number}","pulls_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls{/number}","milestones_url":"https://api.github.com/repos/evergreen-ci/evergreen/milestones{/number}","notifications_url":"https://api.github.com/repos/evergreen-ci/evergreen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evergreen-ci/evergreen/labels{/name}","releases_url":"https://api.github.com/repos/evergreen-ci/evergreen/releases{/id}","deployments_url":"https://api.github.com/repos/evergreen-ci/evergreen/deployments","created_at":"2015-05-27T18:03:09Z","updated_at":"2018-06-13T20:15:55Z","pushed_at":"2018-06-13T20:37:33Z","git_url":"git://github.com/evergreen-ci/evergreen.git","ssh_url":"git@github.com:evergreen-ci/evergreen.git","clone_url":"https://github.com/evergreen-ci/evergreen.git","svn_url":"https://github.com/evergreen-ci/evergreen","homepage":"http://evergreen.mongodb.com","size":53288,"stargazers_count":169,"watchers_count":169,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":48,"open_issues":9,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1251"},"issue":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1251"},"comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1251/comments"},"review_comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251/comments"},"review_comment":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1251/commits"},"statuses":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/4c7e41500926039b07d9f19f7aa70cd4cabae2f7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"john-m-liu"}}