{"action":"created","comment":{"url":"https://api.github.com/repos/Clever/aviator/pulls/comments/34099250","id":34099250,"diff_hunk":"@@ -27,6 +27,8 @@ func main() {\n \tplan := flag.Bool(\"plan\", false, \"Print execution plan, then exit.\")\n \twhereis := flag.String(\"whereis\", \"\", \"Shows the path to the aviator.yml file that added the service\")\n \tdiagram := flag.Bool(\"diagram\", false, \"Print architecture diagram, then exit.\")\n+\tpull := flag.Bool(\"pull\", false, \"Pull repos for dependencies, then exit.\")\n+\tupdate := flag.Bool(\"update\", false, \"Pull and update dependencies for service, then exit.\")","path":"cmd/aviator/main.go","position":null,"original_position":5,"commit_id":"544ca646b0129f7b1963d9b247d54ea0c0d8a95a","original_commit_id":"2eadcfd6d0d3d6d5e4cb26c9166743622f067581","user":{"login":"samfishman","id":184140,"avatar_url":"https://avatars.githubusercontent.com/u/184140?v=3","gravatar_id":"","url":"https://api.github.com/users/samfishman","html_url":"https://github.com/samfishman","followers_url":"https://api.github.com/users/samfishman/followers","following_url":"https://api.github.com/users/samfishman/following{/other_user}","gists_url":"https://api.github.com/users/samfishman/gists{/gist_id}","starred_url":"https://api.github.com/users/samfishman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samfishman/subscriptions","organizations_url":"https://api.github.com/users/samfishman/orgs","repos_url":"https://api.github.com/users/samfishman/repos","events_url":"https://api.github.com/users/samfishman/events{/privacy}","received_events_url":"https://api.github.com/users/samfishman/received_events","type":"User","site_admin":false},"body":"Updated in 544ca64.","created_at":"2015-07-07T22:33:52Z","updated_at":"2015-07-07T22:33:52Z","html_url":"https://github.com/Clever/aviator/pull/54#discussion_r34099250","pull_request_url":"https://api.github.com/repos/Clever/aviator/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/Clever/aviator/pulls/comments/34099250"},"html":{"href":"https://github.com/Clever/aviator/pull/54#discussion_r34099250"},"pull_request":{"href":"https://api.github.com/repos/Clever/aviator/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/Clever/aviator/pulls/54","id":39314880,"html_url":"https://github.com/Clever/aviator/pull/54","diff_url":"https://github.com/Clever/aviator/pull/54.diff","patch_url":"https://github.com/Clever/aviator/pull/54.patch","issue_url":"https://api.github.com/repos/Clever/aviator/issues/54","number":54,"state":"open","locked":false,"title":"INFRA-273: Update deps along tree","user":{"login":"samfishman","id":184140,"avatar_url":"https://avatars.githubusercontent.com/u/184140?v=3","gravatar_id":"","url":"https://api.github.com/users/samfishman","html_url":"https://github.com/samfishman","followers_url":"https://api.github.com/users/samfishman/followers","following_url":"https://api.github.com/users/samfishman/following{/other_user}","gists_url":"https://api.github.com/users/samfishman/gists{/gist_id}","starred_url":"https://api.github.com/users/samfishman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samfishman/subscriptions","organizations_url":"https://api.github.com/users/samfishman/orgs","repos_url":"https://api.github.com/users/samfishman/repos","events_url":"https://api.github.com/users/samfishman/events{/privacy}","received_events_url":"https://api.github.com/users/samfishman/received_events","type":"User","site_admin":false},"body":"**Why:**\r\nWhen one service gets updated, it can be confusing when some other service you are trying to run that depends on the first no longer works. Often this is due to dependencies being out of sync.\r\n\r\n**What:**\r\nThis adds a `-pull` and `-update` flag to aviator that pulls all dependent repositories and, in the case of `-update`, also runs the command specified in the `update` property of each dependent service's YAML config file. For example, this could be `npm install` in the case of node services or `go get` in the case of go projects.","created_at":"2015-07-06T21:52:31Z","updated_at":"2015-07-07T22:33:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64c5eae9fec69ca74920fee907bdf05415caf105","assignee":{"login":"samfishman","id":184140,"avatar_url":"https://avatars.githubusercontent.com/u/184140?v=3","gravatar_id":"","url":"https://api.github.com/users/samfishman","html_url":"https://github.com/samfishman","followers_url":"https://api.github.com/users/samfishman/followers","following_url":"https://api.github.com/users/samfishman/following{/other_user}","gists_url":"https://api.github.com/users/samfishman/gists{/gist_id}","starred_url":"https://api.github.com/users/samfishman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samfishman/subscriptions","organizations_url":"https://api.github.com/users/samfishman/orgs","repos_url":"https://api.github.com/users/samfishman/repos","events_url":"https://api.github.com/users/samfishman/events{/privacy}","received_events_url":"https://api.github.com/users/samfishman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Clever/aviator/pulls/54/commits","review_comments_url":"https://api.github.com/repos/Clever/aviator/pulls/54/comments","review_comment_url":"https://api.github.com/repos/Clever/aviator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Clever/aviator/issues/54/comments","statuses_url":"https://api.github.com/repos/Clever/aviator/statuses/544ca646b0129f7b1963d9b247d54ea0c0d8a95a","head":{"label":"Clever:INFRA-273-update-deps","ref":"INFRA-273-update-deps","sha":"544ca646b0129f7b1963d9b247d54ea0c0d8a95a","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":21252048,"name":"aviator","full_name":"Clever/aviator","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/aviator","description":"Dependent service launching on localhost","fork":false,"url":"https://api.github.com/repos/Clever/aviator","forks_url":"https://api.github.com/repos/Clever/aviator/forks","keys_url":"https://api.github.com/repos/Clever/aviator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/aviator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/aviator/teams","hooks_url":"https://api.github.com/repos/Clever/aviator/hooks","issue_events_url":"https://api.github.com/repos/Clever/aviator/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/aviator/events","assignees_url":"https://api.github.com/repos/Clever/aviator/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/aviator/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/aviator/tags","blobs_url":"https://api.github.com/repos/Clever/aviator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/aviator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/aviator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/aviator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/aviator/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/aviator/languages","stargazers_url":"https://api.github.com/repos/Clever/aviator/stargazers","contributors_url":"https://api.github.com/repos/Clever/aviator/contributors","subscribers_url":"https://api.github.com/repos/Clever/aviator/subscribers","subscription_url":"https://api.github.com/repos/Clever/aviator/subscription","commits_url":"https://api.github.com/repos/Clever/aviator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/aviator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/aviator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/aviator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/aviator/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/aviator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/aviator/merges","archive_url":"https://api.github.com/repos/Clever/aviator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/aviator/downloads","issues_url":"https://api.github.com/repos/Clever/aviator/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/aviator/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/aviator/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/aviator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/aviator/labels{/name}","releases_url":"https://api.github.com/repos/Clever/aviator/releases{/id}","created_at":"2014-06-26T19:20:57Z","updated_at":"2015-06-21T02:37:02Z","pushed_at":"2015-07-07T22:33:04Z","git_url":"git://github.com/Clever/aviator.git","ssh_url":"git@github.com:Clever/aviator.git","clone_url":"https://github.com/Clever/aviator.git","svn_url":"https://github.com/Clever/aviator","homepage":null,"size":884,"stargazers_count":27,"watchers_count":27,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":27,"default_branch":"master"}},"base":{"label":"Clever:master","ref":"master","sha":"9d09f812fd660413c30aed0a9aeba7adceec2640","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":21252048,"name":"aviator","full_name":"Clever/aviator","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/aviator","description":"Dependent service launching on localhost","fork":false,"url":"https://api.github.com/repos/Clever/aviator","forks_url":"https://api.github.com/repos/Clever/aviator/forks","keys_url":"https://api.github.com/repos/Clever/aviator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/aviator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/aviator/teams","hooks_url":"https://api.github.com/repos/Clever/aviator/hooks","issue_events_url":"https://api.github.com/repos/Clever/aviator/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/aviator/events","assignees_url":"https://api.github.com/repos/Clever/aviator/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/aviator/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/aviator/tags","blobs_url":"https://api.github.com/repos/Clever/aviator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/aviator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/aviator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/aviator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/aviator/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/aviator/languages","stargazers_url":"https://api.github.com/repos/Clever/aviator/stargazers","contributors_url":"https://api.github.com/repos/Clever/aviator/contributors","subscribers_url":"https://api.github.com/repos/Clever/aviator/subscribers","subscription_url":"https://api.github.com/repos/Clever/aviator/subscription","commits_url":"https://api.github.com/repos/Clever/aviator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/aviator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/aviator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/aviator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/aviator/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/aviator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/aviator/merges","archive_url":"https://api.github.com/repos/Clever/aviator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/aviator/downloads","issues_url":"https://api.github.com/repos/Clever/aviator/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/aviator/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/aviator/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/aviator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/aviator/labels{/name}","releases_url":"https://api.github.com/repos/Clever/aviator/releases{/id}","created_at":"2014-06-26T19:20:57Z","updated_at":"2015-06-21T02:37:02Z","pushed_at":"2015-07-07T22:33:04Z","git_url":"git://github.com/Clever/aviator.git","ssh_url":"git@github.com:Clever/aviator.git","clone_url":"https://github.com/Clever/aviator.git","svn_url":"https://github.com/Clever/aviator","homepage":null,"size":884,"stargazers_count":27,"watchers_count":27,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Clever/aviator/pulls/54"},"html":{"href":"https://github.com/Clever/aviator/pull/54"},"issue":{"href":"https://api.github.com/repos/Clever/aviator/issues/54"},"comments":{"href":"https://api.github.com/repos/Clever/aviator/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/Clever/aviator/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/Clever/aviator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Clever/aviator/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/Clever/aviator/statuses/544ca646b0129f7b1963d9b247d54ea0c0d8a95a"}}}}