{"action":"created","comment":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/201505798","pull_request_review_id":136022445,"id":201505798,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTUwNTc5OA==","diff_hunk":"@@ -0,0 +1,194 @@\n+package trigger\n+\n+import (\n+\t\"fmt\"\n+\n+\t\"github.com/evergreen-ci/evergreen\"\n+\t\"github.com/evergreen-ci/evergreen/model/event\"\n+\t\"github.com/evergreen-ci/evergreen/model/host\"\n+\t\"github.com/evergreen-ci/evergreen/model/notification\"\n+\t\"github.com/mongodb/grip\"\n+\t\"github.com/mongodb/grip/message\"\n+\t\"github.com/pkg/errors\"\n+)\n+\n+func init() {\n+\tregistry.registerEventHandler(event.ResourceTypeHost, event.EventHostProvisioned, makeSpawnHostTriggers)\n+\tregistry.registerEventHandler(event.ResourceTypeHost, event.EventHostProvisionFailed, makeSpawnHostTriggers)\n+}\n+\n+type spawnHostTriggers struct {","path":"model/trigger/host_spawn.go","position":19,"original_position":20,"commit_id":"16039e0b2518593462c91baea1eb3672c98886ba","original_commit_id":"3a74f0cb4dddf3cecade2fea602611780875d602","user":{"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},"body":"Let's discuss this out of band of this PR, because what you're proposing requires refactoring all triggers","created_at":"2018-07-10T21:45:42Z","updated_at":"2018-07-10T21:45:43Z","html_url":"https://github.com/evergreen-ci/evergreen/pull/1341#discussion_r201505798","pull_request_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/201505798"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1341#discussion_r201505798"},"pull_request":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341"}},"in_reply_to_id":199255978},"pull_request":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341","id":198388228,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4Mzg4MjI4","html_url":"https://github.com/evergreen-ci/evergreen/pull/1341","diff_url":"https://github.com/evergreen-ci/evergreen/pull/1341.diff","patch_url":"https://github.com/evergreen-ci/evergreen/pull/1341.patch","issue_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1341","number":1341,"state":"open","locked":false,"title":"EVG-3532 Spawn Host Outcome Trigger","user":{"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},"body":"","created_at":"2018-06-29T18:13:38Z","updated_at":"2018-07-10T21:45:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6233e5c463ad831065a5edf7638abc10f897878","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341/commits","review_comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341/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/1341/comments","statuses_url":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/16039e0b2518593462c91baea1eb3672c98886ba","head":{"label":"richardsamuels:3085","ref":"3085","sha":"16039e0b2518593462c91baea1eb3672c98886ba","user":{"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},"repo":{"id":105666716,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU2NjY3MTY=","name":"evergreen","full_name":"richardsamuels/evergreen","owner":{"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},"private":false,"html_url":"https://github.com/richardsamuels/evergreen","description":"A Distributed Continuous Integration System from MongoDB","fork":true,"url":"https://api.github.com/repos/richardsamuels/evergreen","forks_url":"https://api.github.com/repos/richardsamuels/evergreen/forks","keys_url":"https://api.github.com/repos/richardsamuels/evergreen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/richardsamuels/evergreen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/richardsamuels/evergreen/teams","hooks_url":"https://api.github.com/repos/richardsamuels/evergreen/hooks","issue_events_url":"https://api.github.com/repos/richardsamuels/evergreen/issues/events{/number}","events_url":"https://api.github.com/repos/richardsamuels/evergreen/events","assignees_url":"https://api.github.com/repos/richardsamuels/evergreen/assignees{/user}","branches_url":"https://api.github.com/repos/richardsamuels/evergreen/branches{/branch}","tags_url":"https://api.github.com/repos/richardsamuels/evergreen/tags","blobs_url":"https://api.github.com/repos/richardsamuels/evergreen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/richardsamuels/evergreen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/richardsamuels/evergreen/git/refs{/sha}","trees_url":"https://api.github.com/repos/richardsamuels/evergreen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/richardsamuels/evergreen/statuses/{sha}","languages_url":"https://api.github.com/repos/richardsamuels/evergreen/languages","stargazers_url":"https://api.github.com/repos/richardsamuels/evergreen/stargazers","contributors_url":"https://api.github.com/repos/richardsamuels/evergreen/contributors","subscribers_url":"https://api.github.com/repos/richardsamuels/evergreen/subscribers","subscription_url":"https://api.github.com/repos/richardsamuels/evergreen/subscription","commits_url":"https://api.github.com/repos/richardsamuels/evergreen/commits{/sha}","git_commits_url":"https://api.github.com/repos/richardsamuels/evergreen/git/commits{/sha}","comments_url":"https://api.github.com/repos/richardsamuels/evergreen/comments{/number}","issue_comment_url":"https://api.github.com/repos/richardsamuels/evergreen/issues/comments{/number}","contents_url":"https://api.github.com/repos/richardsamuels/evergreen/contents/{+path}","compare_url":"https://api.github.com/repos/richardsamuels/evergreen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/richardsamuels/evergreen/merges","archive_url":"https://api.github.com/repos/richardsamuels/evergreen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/richardsamuels/evergreen/downloads","issues_url":"https://api.github.com/repos/richardsamuels/evergreen/issues{/number}","pulls_url":"https://api.github.com/repos/richardsamuels/evergreen/pulls{/number}","milestones_url":"https://api.github.com/repos/richardsamuels/evergreen/milestones{/number}","notifications_url":"https://api.github.com/repos/richardsamuels/evergreen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/richardsamuels/evergreen/labels{/name}","releases_url":"https://api.github.com/repos/richardsamuels/evergreen/releases{/id}","deployments_url":"https://api.github.com/repos/richardsamuels/evergreen/deployments","created_at":"2017-10-03T15:13:10Z","updated_at":"2018-07-10T16:46:01Z","pushed_at":"2018-07-10T21:32:21Z","git_url":"git://github.com/richardsamuels/evergreen.git","ssh_url":"git@github.com:richardsamuels/evergreen.git","clone_url":"https://github.com/richardsamuels/evergreen.git","svn_url":"https://github.com/richardsamuels/evergreen","homepage":"http://evergreen.mongodb.com","size":55399,"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":"85db113f670f35860cd4554249940dc12ed1b28f","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-07-10T20:56:33Z","pushed_at":"2018-07-10T21:36:37Z","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":54203,"stargazers_count":171,"watchers_count":171,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":50,"open_issues":10,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1341"},"issue":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1341"},"comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1341/comments"},"review_comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1341/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/1341/commits"},"statuses":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/16039e0b2518593462c91baea1eb3672c98886ba"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"richardsamuels"}}