{"action":"created","comment":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/190274748","pull_request_review_id":122617225,"id":190274748,"diff_hunk":"@@ -0,0 +1,44 @@\n+package command\n+\n+import (\n+\t\"context\"\n+\t\"io/ioutil\"\n+\n+\t\"github.com/evergreen-ci/evergreen/model\"\n+\t\"github.com/evergreen-ci/evergreen/rest/client\"\n+\t\"github.com/mitchellh/mapstructure\"\n+\t\"github.com/pkg/errors\"\n+\tyaml \"gopkg.in/yaml.v2\"\n+)\n+\n+type expansionsWriter struct {\n+\tFile string `mapstructure:\"file\"`\n+\n+\tbase\n+}\n+\n+func writeExpansionsFactory() Command    { return &expansionsWriter{} }\n+func (c *expansionsWriter) Name() string { return \"expansions.write\" }\n+\n+func (c *expansionsWriter) ParseParams(params map[string]interface{}) error {\n+\terr := mapstructure.Decode(params, c)\n+\tif err != nil {\n+\t\treturn errors.Wrap(err, \"couldn't decode params\")\n+\t}\n+\n+\treturn nil\n+}\n+\n+func (c *expansionsWriter) Execute(ctx context.Context,\n+\tcomm client.Communicator, logger client.LoggerProducer, conf *model.TaskConfig) error {\n+\n+\tout, err := yaml.Marshal(conf.Expansions)\n+\tif err != nil {\n+\t\treturn errors.Wrap(err, \"error marshaling expansions\")\n+\t}\n+\tif err := ioutil.WriteFile(c.File, out, 0600); err != nil {\n+\t\treturn errors.Wrapf(err, \"error writing expansions to file (%s)\", c.File)\n+\t}","path":"command/expansion_write.go","position":41,"original_position":41,"commit_id":"02f92088a0e22e19e0a09e5214c629e1624f3214","original_commit_id":"aa053e19c0b13b5ebb9f30fde30aae81f19d25e9","user":{"login":"bsamek","id":624531,"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},"body":"done","created_at":"2018-05-23T14:42:31Z","updated_at":"2018-05-23T14:46:52Z","html_url":"https://github.com/evergreen-ci/evergreen/pull/1187#discussion_r190274748","pull_request_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/190274748"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1187#discussion_r190274748"},"pull_request":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187"}},"in_reply_to_id":190259126},"pull_request":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187","id":189806206,"html_url":"https://github.com/evergreen-ci/evergreen/pull/1187","diff_url":"https://github.com/evergreen-ci/evergreen/pull/1187.diff","patch_url":"https://github.com/evergreen-ci/evergreen/pull/1187.patch","issue_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1187","number":1187,"state":"open","locked":false,"title":"EVG-3143 Add command to serialize expansions to a file","user":{"login":"bsamek","id":624531,"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},"body":null,"created_at":"2018-05-22T22:07:49Z","updated_at":"2018-05-23T14:46:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a751d5f77916e44366d16e36fe940ac7b1b35e51","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187/commits","review_comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187/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/1187/comments","statuses_url":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/02f92088a0e22e19e0a09e5214c629e1624f3214","head":{"label":"bsamek:EVG-3142-serialize-yaml","ref":"EVG-3142-serialize-yaml","sha":"02f92088a0e22e19e0a09e5214c629e1624f3214","user":{"login":"bsamek","id":624531,"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},"repo":{"id":55173348,"name":"evergreen","full_name":"bsamek/evergreen","owner":{"login":"bsamek","id":624531,"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},"private":false,"html_url":"https://github.com/bsamek/evergreen","description":"A Distributed Continuous Integration System from MongoDB","fork":true,"url":"https://api.github.com/repos/bsamek/evergreen","forks_url":"https://api.github.com/repos/bsamek/evergreen/forks","keys_url":"https://api.github.com/repos/bsamek/evergreen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsamek/evergreen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsamek/evergreen/teams","hooks_url":"https://api.github.com/repos/bsamek/evergreen/hooks","issue_events_url":"https://api.github.com/repos/bsamek/evergreen/issues/events{/number}","events_url":"https://api.github.com/repos/bsamek/evergreen/events","assignees_url":"https://api.github.com/repos/bsamek/evergreen/assignees{/user}","branches_url":"https://api.github.com/repos/bsamek/evergreen/branches{/branch}","tags_url":"https://api.github.com/repos/bsamek/evergreen/tags","blobs_url":"https://api.github.com/repos/bsamek/evergreen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsamek/evergreen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsamek/evergreen/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsamek/evergreen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsamek/evergreen/statuses/{sha}","languages_url":"https://api.github.com/repos/bsamek/evergreen/languages","stargazers_url":"https://api.github.com/repos/bsamek/evergreen/stargazers","contributors_url":"https://api.github.com/repos/bsamek/evergreen/contributors","subscribers_url":"https://api.github.com/repos/bsamek/evergreen/subscribers","subscription_url":"https://api.github.com/repos/bsamek/evergreen/subscription","commits_url":"https://api.github.com/repos/bsamek/evergreen/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsamek/evergreen/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsamek/evergreen/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsamek/evergreen/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsamek/evergreen/contents/{+path}","compare_url":"https://api.github.com/repos/bsamek/evergreen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsamek/evergreen/merges","archive_url":"https://api.github.com/repos/bsamek/evergreen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsamek/evergreen/downloads","issues_url":"https://api.github.com/repos/bsamek/evergreen/issues{/number}","pulls_url":"https://api.github.com/repos/bsamek/evergreen/pulls{/number}","milestones_url":"https://api.github.com/repos/bsamek/evergreen/milestones{/number}","notifications_url":"https://api.github.com/repos/bsamek/evergreen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsamek/evergreen/labels{/name}","releases_url":"https://api.github.com/repos/bsamek/evergreen/releases{/id}","deployments_url":"https://api.github.com/repos/bsamek/evergreen/deployments","created_at":"2016-03-31T18:23:29Z","updated_at":"2018-05-22T12:26:34Z","pushed_at":"2018-05-23T14:42:24Z","git_url":"git://github.com/bsamek/evergreen.git","ssh_url":"git@github.com:bsamek/evergreen.git","clone_url":"https://github.com/bsamek/evergreen.git","svn_url":"https://github.com/bsamek/evergreen","homepage":"http://evergreen.mongodb.com","size":50786,"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},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"evergreen-ci:master","ref":"master","sha":"503d660cd7293890a15999c2e8a898cdabeab151","user":{"login":"evergreen-ci","id":10089490,"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,"name":"evergreen","full_name":"evergreen-ci/evergreen","owner":{"login":"evergreen-ci","id":10089490,"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-05-23T14:26:34Z","pushed_at":"2018-05-23T14:42:25Z","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":50760,"stargazers_count":168,"watchers_count":168,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":46,"open_issues":10,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1187"},"issue":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1187"},"comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1187/comments"},"review_comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1187/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/1187/commits"},"statuses":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/02f92088a0e22e19e0a09e5214c629e1624f3214"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bsamek"}}