{"action":"created","comment":{"url":"https://api.github.com/repos/Originate/morula/pulls/comments/89508152","pull_request_review_id":10053399,"id":89508152,"diff_hunk":"@@ -81,15 +88,23 @@ func run(command string, dir string) error {\n \treturn cmd.Wait()\n }\n \n-func testSubproject(subprojectName string, c Aurora) (result error) {\n-\tfmt.Printf(\"testing subproject %s ...\\n\\n\", c.Bold(c.Cyan(subprojectName)))\n+func runInSubproject(subprojectName string, commands []string, c Aurora) (result error) {\n+\tcommand := strings.Join(commands, \" \")\n+\tfmt.Printf(\"running %s in subproject %s ...\\n\\n\", c.Bold(c.Cyan(command)), c.Bold(c.Cyan(subprojectName)))\n \tcwd, err := os.Getwd()\n \tcheck(err)\n-\tresult = run(\"bin/spec\", path.Join(cwd, subprojectName))\n+\tresult = run(command, path.Join(cwd, subprojectName))","path":"cmd/run.go","position":null,"original_position":66,"commit_id":"bfeb59799899f2089815becf285f0f72dde7f374","original_commit_id":"b48aed0e722df72e3041a5a7a919ada0a2aceb9b","user":{"login":"kevgo","id":268934,"avatar_url":"https://avatars.githubusercontent.com/u/268934?v=3","gravatar_id":"","url":"https://api.github.com/users/kevgo","html_url":"https://github.com/kevgo","followers_url":"https://api.github.com/users/kevgo/followers","following_url":"https://api.github.com/users/kevgo/following{/other_user}","gists_url":"https://api.github.com/users/kevgo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevgo/subscriptions","organizations_url":"https://api.github.com/users/kevgo/orgs","repos_url":"https://api.github.com/users/kevgo/repos","events_url":"https://api.github.com/users/kevgo/events{/privacy}","received_events_url":"https://api.github.com/users/kevgo/received_events","type":"User","site_admin":false},"body":"Thanks, excellent points!","created_at":"2016-11-24T14:39:52Z","updated_at":"2016-11-24T14:39:53Z","html_url":"https://github.com/Originate/morula/pull/21#discussion_r89508152","pull_request_url":"https://api.github.com/repos/Originate/morula/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Originate/morula/pulls/comments/89508152"},"html":{"href":"https://github.com/Originate/morula/pull/21#discussion_r89508152"},"pull_request":{"href":"https://api.github.com/repos/Originate/morula/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Originate/morula/pulls/21","id":95034056,"html_url":"https://github.com/Originate/morula/pull/21","diff_url":"https://github.com/Originate/morula/pull/21.diff","patch_url":"https://github.com/Originate/morula/pull/21.patch","issue_url":"https://api.github.com/repos/Originate/morula/issues/21","number":21,"state":"open","locked":false,"title":"Running arbitrary commands in subrepos","user":{"login":"kevgo","id":268934,"avatar_url":"https://avatars.githubusercontent.com/u/268934?v=3","gravatar_id":"","url":"https://api.github.com/users/kevgo","html_url":"https://github.com/kevgo","followers_url":"https://api.github.com/users/kevgo/followers","following_url":"https://api.github.com/users/kevgo/following{/other_user}","gists_url":"https://api.github.com/users/kevgo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevgo/subscriptions","organizations_url":"https://api.github.com/users/kevgo/orgs","repos_url":"https://api.github.com/users/kevgo/repos","events_url":"https://api.github.com/users/kevgo/events{/privacy}","received_events_url":"https://api.github.com/users/kevgo/received_events","type":"User","site_admin":false},"body":"This PR makes Morula a lot more flexible by allowing to run any command in any subrepository.\r\nSee the changes in the feature specs within this PR for details about how the new behavior works.\r\n\r\n@alexdavid @martinjaime @dminnear @arekkas ","created_at":"2016-11-23T16:15:55Z","updated_at":"2016-11-24T14:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb71fab60fb0e6b1012a0913817755850aed253b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Originate/morula/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Originate/morula/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Originate/morula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Originate/morula/issues/21/comments","statuses_url":"https://api.github.com/repos/Originate/morula/statuses/bfeb59799899f2089815becf285f0f72dde7f374","head":{"label":"Originate:kg-2-run-tasks","ref":"kg-2-run-tasks","sha":"bfeb59799899f2089815becf285f0f72dde7f374","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":73009873,"name":"morula","full_name":"Originate/morula","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/morula","description":"Tool for managing polyglot monorepos ","fork":false,"url":"https://api.github.com/repos/Originate/morula","forks_url":"https://api.github.com/repos/Originate/morula/forks","keys_url":"https://api.github.com/repos/Originate/morula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/morula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/morula/teams","hooks_url":"https://api.github.com/repos/Originate/morula/hooks","issue_events_url":"https://api.github.com/repos/Originate/morula/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/morula/events","assignees_url":"https://api.github.com/repos/Originate/morula/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/morula/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/morula/tags","blobs_url":"https://api.github.com/repos/Originate/morula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/morula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/morula/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/morula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/morula/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/morula/languages","stargazers_url":"https://api.github.com/repos/Originate/morula/stargazers","contributors_url":"https://api.github.com/repos/Originate/morula/contributors","subscribers_url":"https://api.github.com/repos/Originate/morula/subscribers","subscription_url":"https://api.github.com/repos/Originate/morula/subscription","commits_url":"https://api.github.com/repos/Originate/morula/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/morula/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/morula/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/morula/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/morula/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/morula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/morula/merges","archive_url":"https://api.github.com/repos/Originate/morula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/morula/downloads","issues_url":"https://api.github.com/repos/Originate/morula/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/morula/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/morula/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/morula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/morula/labels{/name}","releases_url":"https://api.github.com/repos/Originate/morula/releases{/id}","deployments_url":"https://api.github.com/repos/Originate/morula/deployments","created_at":"2016-11-06T18:19:31Z","updated_at":"2016-11-15T05:28:38Z","pushed_at":"2016-11-24T14:36:25Z","git_url":"git://github.com/Originate/morula.git","ssh_url":"git@github.com:Originate/morula.git","clone_url":"https://github.com/Originate/morula.git","svn_url":"https://github.com/Originate/morula","homepage":null,"size":1237,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"base":{"label":"Originate:master","ref":"master","sha":"6b41703232ee1b9991031b3b60269f3e23163a25","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":73009873,"name":"morula","full_name":"Originate/morula","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/morula","description":"Tool for managing polyglot monorepos ","fork":false,"url":"https://api.github.com/repos/Originate/morula","forks_url":"https://api.github.com/repos/Originate/morula/forks","keys_url":"https://api.github.com/repos/Originate/morula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/morula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/morula/teams","hooks_url":"https://api.github.com/repos/Originate/morula/hooks","issue_events_url":"https://api.github.com/repos/Originate/morula/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/morula/events","assignees_url":"https://api.github.com/repos/Originate/morula/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/morula/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/morula/tags","blobs_url":"https://api.github.com/repos/Originate/morula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/morula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/morula/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/morula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/morula/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/morula/languages","stargazers_url":"https://api.github.com/repos/Originate/morula/stargazers","contributors_url":"https://api.github.com/repos/Originate/morula/contributors","subscribers_url":"https://api.github.com/repos/Originate/morula/subscribers","subscription_url":"https://api.github.com/repos/Originate/morula/subscription","commits_url":"https://api.github.com/repos/Originate/morula/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/morula/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/morula/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/morula/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/morula/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/morula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/morula/merges","archive_url":"https://api.github.com/repos/Originate/morula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/morula/downloads","issues_url":"https://api.github.com/repos/Originate/morula/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/morula/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/morula/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/morula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/morula/labels{/name}","releases_url":"https://api.github.com/repos/Originate/morula/releases{/id}","deployments_url":"https://api.github.com/repos/Originate/morula/deployments","created_at":"2016-11-06T18:19:31Z","updated_at":"2016-11-15T05:28:38Z","pushed_at":"2016-11-24T14:36:25Z","git_url":"git://github.com/Originate/morula.git","ssh_url":"git@github.com:Originate/morula.git","clone_url":"https://github.com/Originate/morula.git","svn_url":"https://github.com/Originate/morula","homepage":null,"size":1237,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Originate/morula/pulls/21"},"html":{"href":"https://github.com/Originate/morula/pull/21"},"issue":{"href":"https://api.github.com/repos/Originate/morula/issues/21"},"comments":{"href":"https://api.github.com/repos/Originate/morula/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Originate/morula/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Originate/morula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Originate/morula/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Originate/morula/statuses/bfeb59799899f2089815becf285f0f72dde7f374"}}}}
{"actor":{"display_login":"kevgo"}}