{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/harbur/captain/pulls/20","id":40795676,"html_url":"https://github.com/harbur/captain/pull/20","diff_url":"https://github.com/harbur/captain/pull/20.diff","patch_url":"https://github.com/harbur/captain/pull/20.patch","issue_url":"https://api.github.com/repos/harbur/captain/issues/20","number":20,"state":"open","locked":false,"title":"Remove globals","user":{"login":"ejholmes","id":95166,"avatar_url":"https://avatars.githubusercontent.com/u/95166?v=3","gravatar_id":"","url":"https://api.github.com/users/ejholmes","html_url":"https://github.com/ejholmes","followers_url":"https://api.github.com/users/ejholmes/followers","following_url":"https://api.github.com/users/ejholmes/following{/other_user}","gists_url":"https://api.github.com/users/ejholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/ejholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejholmes/subscriptions","organizations_url":"https://api.github.com/users/ejholmes/orgs","repos_url":"https://api.github.com/users/ejholmes/repos","events_url":"https://api.github.com/users/ejholmes/events{/privacy}","received_events_url":"https://api.github.com/users/ejholmes/received_events","type":"User","site_admin":false},"body":"This moves all of the command related functionality into cmd/captain and makes package captain a more re-usable library.\r\n\r\nPrimarily, these changes were made:\r\n\r\n1. package `harbur/captain/captain` was moved to package `harbur/captain`.\r\n1. cmd.go was moved to `cmd/captain/cmd.go`\r\n2. The `Options` type was moved to `cmd/captain` and the global `options` variable was removed.\r\n\r\nI'm planning on adding an http.Handler implementation that consumes the captain package to handle GitHub push webhooks, so you can use captain as your build system both locally, and on git pushes to github without needing to setup something like jenkins. I think it could be pretty nice.\r\n\r\nI'll submit that change upstream when it's ready and if you want it, but I figure you might also want this change.","created_at":"2015-07-24T17:09:50Z","updated_at":"2015-07-24T17:09:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17ca9c4ec97b7531ce6b0b06d77ffa935911fd1f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/harbur/captain/pulls/20/commits","review_comments_url":"https://api.github.com/repos/harbur/captain/pulls/20/comments","review_comment_url":"https://api.github.com/repos/harbur/captain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harbur/captain/issues/20/comments","statuses_url":"https://api.github.com/repos/harbur/captain/statuses/ab1330a57cf2b0698c965c21740f5ef9316d75b9","head":{"label":"ejholmes:globals","ref":"globals","sha":"ab1330a57cf2b0698c965c21740f5ef9316d75b9","user":{"login":"ejholmes","id":95166,"avatar_url":"https://avatars.githubusercontent.com/u/95166?v=3","gravatar_id":"","url":"https://api.github.com/users/ejholmes","html_url":"https://github.com/ejholmes","followers_url":"https://api.github.com/users/ejholmes/followers","following_url":"https://api.github.com/users/ejholmes/following{/other_user}","gists_url":"https://api.github.com/users/ejholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/ejholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejholmes/subscriptions","organizations_url":"https://api.github.com/users/ejholmes/orgs","repos_url":"https://api.github.com/users/ejholmes/repos","events_url":"https://api.github.com/users/ejholmes/events{/privacy}","received_events_url":"https://api.github.com/users/ejholmes/received_events","type":"User","site_admin":false},"repo":{"id":38862694,"name":"captain","full_name":"ejholmes/captain","owner":{"login":"ejholmes","id":95166,"avatar_url":"https://avatars.githubusercontent.com/u/95166?v=3","gravatar_id":"","url":"https://api.github.com/users/ejholmes","html_url":"https://github.com/ejholmes","followers_url":"https://api.github.com/users/ejholmes/followers","following_url":"https://api.github.com/users/ejholmes/following{/other_user}","gists_url":"https://api.github.com/users/ejholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/ejholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejholmes/subscriptions","organizations_url":"https://api.github.com/users/ejholmes/orgs","repos_url":"https://api.github.com/users/ejholmes/repos","events_url":"https://api.github.com/users/ejholmes/events{/privacy}","received_events_url":"https://api.github.com/users/ejholmes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ejholmes/captain","description":"Captain - Convert your Git workflow to Docker :whale: containers","fork":true,"url":"https://api.github.com/repos/ejholmes/captain","forks_url":"https://api.github.com/repos/ejholmes/captain/forks","keys_url":"https://api.github.com/repos/ejholmes/captain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ejholmes/captain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ejholmes/captain/teams","hooks_url":"https://api.github.com/repos/ejholmes/captain/hooks","issue_events_url":"https://api.github.com/repos/ejholmes/captain/issues/events{/number}","events_url":"https://api.github.com/repos/ejholmes/captain/events","assignees_url":"https://api.github.com/repos/ejholmes/captain/assignees{/user}","branches_url":"https://api.github.com/repos/ejholmes/captain/branches{/branch}","tags_url":"https://api.github.com/repos/ejholmes/captain/tags","blobs_url":"https://api.github.com/repos/ejholmes/captain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ejholmes/captain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ejholmes/captain/git/refs{/sha}","trees_url":"https://api.github.com/repos/ejholmes/captain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ejholmes/captain/statuses/{sha}","languages_url":"https://api.github.com/repos/ejholmes/captain/languages","stargazers_url":"https://api.github.com/repos/ejholmes/captain/stargazers","contributors_url":"https://api.github.com/repos/ejholmes/captain/contributors","subscribers_url":"https://api.github.com/repos/ejholmes/captain/subscribers","subscription_url":"https://api.github.com/repos/ejholmes/captain/subscription","commits_url":"https://api.github.com/repos/ejholmes/captain/commits{/sha}","git_commits_url":"https://api.github.com/repos/ejholmes/captain/git/commits{/sha}","comments_url":"https://api.github.com/repos/ejholmes/captain/comments{/number}","issue_comment_url":"https://api.github.com/repos/ejholmes/captain/issues/comments{/number}","contents_url":"https://api.github.com/repos/ejholmes/captain/contents/{+path}","compare_url":"https://api.github.com/repos/ejholmes/captain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ejholmes/captain/merges","archive_url":"https://api.github.com/repos/ejholmes/captain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ejholmes/captain/downloads","issues_url":"https://api.github.com/repos/ejholmes/captain/issues{/number}","pulls_url":"https://api.github.com/repos/ejholmes/captain/pulls{/number}","milestones_url":"https://api.github.com/repos/ejholmes/captain/milestones{/number}","notifications_url":"https://api.github.com/repos/ejholmes/captain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ejholmes/captain/labels{/name}","releases_url":"https://api.github.com/repos/ejholmes/captain/releases{/id}","created_at":"2015-07-10T05:27:59Z","updated_at":"2015-07-10T05:28:01Z","pushed_at":"2015-07-24T17:01:24Z","git_url":"git://github.com/ejholmes/captain.git","ssh_url":"git@github.com:ejholmes/captain.git","clone_url":"https://github.com/ejholmes/captain.git","svn_url":"https://github.com/ejholmes/captain","homepage":"","size":549,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"harbur:master","ref":"master","sha":"32fb0d765cae2c15fb2fa15b5b989fb527704715","user":{"login":"harbur","id":8222788,"avatar_url":"https://avatars.githubusercontent.com/u/8222788?v=3","gravatar_id":"","url":"https://api.github.com/users/harbur","html_url":"https://github.com/harbur","followers_url":"https://api.github.com/users/harbur/followers","following_url":"https://api.github.com/users/harbur/following{/other_user}","gists_url":"https://api.github.com/users/harbur/gists{/gist_id}","starred_url":"https://api.github.com/users/harbur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harbur/subscriptions","organizations_url":"https://api.github.com/users/harbur/orgs","repos_url":"https://api.github.com/users/harbur/repos","events_url":"https://api.github.com/users/harbur/events{/privacy}","received_events_url":"https://api.github.com/users/harbur/received_events","type":"Organization","site_admin":false},"repo":{"id":32202540,"name":"captain","full_name":"harbur/captain","owner":{"login":"harbur","id":8222788,"avatar_url":"https://avatars.githubusercontent.com/u/8222788?v=3","gravatar_id":"","url":"https://api.github.com/users/harbur","html_url":"https://github.com/harbur","followers_url":"https://api.github.com/users/harbur/followers","following_url":"https://api.github.com/users/harbur/following{/other_user}","gists_url":"https://api.github.com/users/harbur/gists{/gist_id}","starred_url":"https://api.github.com/users/harbur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harbur/subscriptions","organizations_url":"https://api.github.com/users/harbur/orgs","repos_url":"https://api.github.com/users/harbur/repos","events_url":"https://api.github.com/users/harbur/events{/privacy}","received_events_url":"https://api.github.com/users/harbur/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harbur/captain","description":"Captain - Convert your Git workflow to Docker :whale: containers","fork":false,"url":"https://api.github.com/repos/harbur/captain","forks_url":"https://api.github.com/repos/harbur/captain/forks","keys_url":"https://api.github.com/repos/harbur/captain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harbur/captain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harbur/captain/teams","hooks_url":"https://api.github.com/repos/harbur/captain/hooks","issue_events_url":"https://api.github.com/repos/harbur/captain/issues/events{/number}","events_url":"https://api.github.com/repos/harbur/captain/events","assignees_url":"https://api.github.com/repos/harbur/captain/assignees{/user}","branches_url":"https://api.github.com/repos/harbur/captain/branches{/branch}","tags_url":"https://api.github.com/repos/harbur/captain/tags","blobs_url":"https://api.github.com/repos/harbur/captain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harbur/captain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harbur/captain/git/refs{/sha}","trees_url":"https://api.github.com/repos/harbur/captain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harbur/captain/statuses/{sha}","languages_url":"https://api.github.com/repos/harbur/captain/languages","stargazers_url":"https://api.github.com/repos/harbur/captain/stargazers","contributors_url":"https://api.github.com/repos/harbur/captain/contributors","subscribers_url":"https://api.github.com/repos/harbur/captain/subscribers","subscription_url":"https://api.github.com/repos/harbur/captain/subscription","commits_url":"https://api.github.com/repos/harbur/captain/commits{/sha}","git_commits_url":"https://api.github.com/repos/harbur/captain/git/commits{/sha}","comments_url":"https://api.github.com/repos/harbur/captain/comments{/number}","issue_comment_url":"https://api.github.com/repos/harbur/captain/issues/comments{/number}","contents_url":"https://api.github.com/repos/harbur/captain/contents/{+path}","compare_url":"https://api.github.com/repos/harbur/captain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harbur/captain/merges","archive_url":"https://api.github.com/repos/harbur/captain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harbur/captain/downloads","issues_url":"https://api.github.com/repos/harbur/captain/issues{/number}","pulls_url":"https://api.github.com/repos/harbur/captain/pulls{/number}","milestones_url":"https://api.github.com/repos/harbur/captain/milestones{/number}","notifications_url":"https://api.github.com/repos/harbur/captain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harbur/captain/labels{/name}","releases_url":"https://api.github.com/repos/harbur/captain/releases{/id}","created_at":"2015-03-14T08:32:42Z","updated_at":"2015-07-18T22:33:55Z","pushed_at":"2015-07-24T17:09:50Z","git_url":"git://github.com/harbur/captain.git","ssh_url":"git@github.com:harbur/captain.git","clone_url":"https://github.com/harbur/captain.git","svn_url":"https://github.com/harbur/captain","homepage":"","size":706,"stargazers_count":243,"watchers_count":243,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":243,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harbur/captain/pulls/20"},"html":{"href":"https://github.com/harbur/captain/pull/20"},"issue":{"href":"https://api.github.com/repos/harbur/captain/issues/20"},"comments":{"href":"https://api.github.com/repos/harbur/captain/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/harbur/captain/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/harbur/captain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harbur/captain/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/harbur/captain/statuses/ab1330a57cf2b0698c965c21740f5ef9316d75b9"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":129,"deletions":120,"changed_files":24}}