{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/17","id":38004614,"html_url":"https://github.com/coderly/ember-micro-addon/pull/17","diff_url":"https://github.com/coderly/ember-micro-addon/pull/17.diff","patch_url":"https://github.com/coderly/ember-micro-addon/pull/17.patch","issue_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues/17","number":17,"state":"closed","locked":false,"title":"Publish command","user":{"login":"begedin","id":1925540,"avatar_url":"https://avatars.githubusercontent.com/u/1925540?v=3","gravatar_id":"","url":"https://api.github.com/users/begedin","html_url":"https://github.com/begedin","followers_url":"https://api.github.com/users/begedin/followers","following_url":"https://api.github.com/users/begedin/following{/other_user}","gists_url":"https://api.github.com/users/begedin/gists{/gist_id}","starred_url":"https://api.github.com/users/begedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begedin/subscriptions","organizations_url":"https://api.github.com/users/begedin/orgs","repos_url":"https://api.github.com/users/begedin/repos","events_url":"https://api.github.com/users/begedin/events{/privacy}","received_events_url":"https://api.github.com/users/begedin/received_events","type":"User","site_admin":false},"body":"* [Asana task: Implement ember-micro:publish command](https://app.asana.com/0/26202368814744/38174604906019)\r\n\r\n# Description\r\n\r\nThis PR adds a publish command which should do the following \r\n\r\n* Initialize the project as a git repository\r\n* Publish it to github\r\n\r\n## Details\r\n\r\nThe entire process consists of the following steps\r\n\r\n* Run the equivalent of `git init` within the micro-addon folder to create a new git repository\r\n* Run the equivalent of `git add -A` within the micro-addon folder to add the existing micro-addon files to the git repository index\r\n* Run the equivalent of `git commit -m \"Initial commit\"`\r\n* Create a remote git repository, where credentials need to be provided via command line. Basic username/password credentials are supported at the moment\r\n* Run the equivalent of `git remote add origin <new-remote-repo-url>`\r\n* Run the equivalent of `git push -u master`\r\n\r\n## Implementation\r\n\r\nFor all steps other than the one where a remote repository is created, we rely on the [nodegit](https://github.com/nodegit/nodegit) package as a git command wrapper. The reason we needed a dependency here is that `git push`  requires credentials, and this was a simple way to enable us to provide credentials via command line when initially executing the publish command.\r\n\r\nFor the step where we create a new remote repository, the [node-github](https://github.com/mikedeboer/node-github) package is used, which is a node wrapper for the GitHub API. The reason for using this is that there is no way to create a GitHub repository via command line.\r\n\r\n## Command usage\r\n\r\nThe command is used in one of the following ways:\r\n\r\n* `ember-micro:publish addonName -u username -p password`\r\n* `ember-micro:publish addonName --username username --password password`\r\n\r\n","created_at":"2015-06-18T13:11:39Z","updated_at":"2015-06-29T12:21:28Z","closed_at":"2015-06-29T12:21:27Z","merged_at":"2015-06-29T12:21:27Z","merge_commit_sha":"f2de9815c06a8f81d610b212961b0322b0e5f6c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/17/commits","review_comments_url":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/17/comments","review_comment_url":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues/17/comments","statuses_url":"https://api.github.com/repos/coderly/ember-micro-addon/statuses/a2004271dcd945b3faaae769b122efa1d4285aa2","head":{"label":"coderly:publish-command","ref":"publish-command","sha":"a2004271dcd945b3faaae769b122efa1d4285aa2","user":{"login":"coderly","id":2837781,"avatar_url":"https://avatars.githubusercontent.com/u/2837781?v=3","gravatar_id":"","url":"https://api.github.com/users/coderly","html_url":"https://github.com/coderly","followers_url":"https://api.github.com/users/coderly/followers","following_url":"https://api.github.com/users/coderly/following{/other_user}","gists_url":"https://api.github.com/users/coderly/gists{/gist_id}","starred_url":"https://api.github.com/users/coderly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderly/subscriptions","organizations_url":"https://api.github.com/users/coderly/orgs","repos_url":"https://api.github.com/users/coderly/repos","events_url":"https://api.github.com/users/coderly/events{/privacy}","received_events_url":"https://api.github.com/users/coderly/received_events","type":"Organization","site_admin":false},"repo":{"id":37308481,"name":"ember-micro-addon","full_name":"coderly/ember-micro-addon","owner":{"login":"coderly","id":2837781,"avatar_url":"https://avatars.githubusercontent.com/u/2837781?v=3","gravatar_id":"","url":"https://api.github.com/users/coderly","html_url":"https://github.com/coderly","followers_url":"https://api.github.com/users/coderly/followers","following_url":"https://api.github.com/users/coderly/following{/other_user}","gists_url":"https://api.github.com/users/coderly/gists{/gist_id}","starred_url":"https://api.github.com/users/coderly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderly/subscriptions","organizations_url":"https://api.github.com/users/coderly/orgs","repos_url":"https://api.github.com/users/coderly/repos","events_url":"https://api.github.com/users/coderly/events{/privacy}","received_events_url":"https://api.github.com/users/coderly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coderly/ember-micro-addon","description":"Command line interface for ember micro addons","fork":false,"url":"https://api.github.com/repos/coderly/ember-micro-addon","forks_url":"https://api.github.com/repos/coderly/ember-micro-addon/forks","keys_url":"https://api.github.com/repos/coderly/ember-micro-addon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coderly/ember-micro-addon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coderly/ember-micro-addon/teams","hooks_url":"https://api.github.com/repos/coderly/ember-micro-addon/hooks","issue_events_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues/events{/number}","events_url":"https://api.github.com/repos/coderly/ember-micro-addon/events","assignees_url":"https://api.github.com/repos/coderly/ember-micro-addon/assignees{/user}","branches_url":"https://api.github.com/repos/coderly/ember-micro-addon/branches{/branch}","tags_url":"https://api.github.com/repos/coderly/ember-micro-addon/tags","blobs_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/refs{/sha}","trees_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coderly/ember-micro-addon/statuses/{sha}","languages_url":"https://api.github.com/repos/coderly/ember-micro-addon/languages","stargazers_url":"https://api.github.com/repos/coderly/ember-micro-addon/stargazers","contributors_url":"https://api.github.com/repos/coderly/ember-micro-addon/contributors","subscribers_url":"https://api.github.com/repos/coderly/ember-micro-addon/subscribers","subscription_url":"https://api.github.com/repos/coderly/ember-micro-addon/subscription","commits_url":"https://api.github.com/repos/coderly/ember-micro-addon/commits{/sha}","git_commits_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/commits{/sha}","comments_url":"https://api.github.com/repos/coderly/ember-micro-addon/comments{/number}","issue_comment_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues/comments{/number}","contents_url":"https://api.github.com/repos/coderly/ember-micro-addon/contents/{+path}","compare_url":"https://api.github.com/repos/coderly/ember-micro-addon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coderly/ember-micro-addon/merges","archive_url":"https://api.github.com/repos/coderly/ember-micro-addon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coderly/ember-micro-addon/downloads","issues_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues{/number}","pulls_url":"https://api.github.com/repos/coderly/ember-micro-addon/pulls{/number}","milestones_url":"https://api.github.com/repos/coderly/ember-micro-addon/milestones{/number}","notifications_url":"https://api.github.com/repos/coderly/ember-micro-addon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coderly/ember-micro-addon/labels{/name}","releases_url":"https://api.github.com/repos/coderly/ember-micro-addon/releases{/id}","created_at":"2015-06-12T07:31:38Z","updated_at":"2015-06-16T11:00:27Z","pushed_at":"2015-06-29T12:21:27Z","git_url":"git://github.com/coderly/ember-micro-addon.git","ssh_url":"git@github.com:coderly/ember-micro-addon.git","clone_url":"https://github.com/coderly/ember-micro-addon.git","svn_url":"https://github.com/coderly/ember-micro-addon","homepage":null,"size":344,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"coderly:master","ref":"master","sha":"d323b0020739cf1c290ea2798df5b400db1be268","user":{"login":"coderly","id":2837781,"avatar_url":"https://avatars.githubusercontent.com/u/2837781?v=3","gravatar_id":"","url":"https://api.github.com/users/coderly","html_url":"https://github.com/coderly","followers_url":"https://api.github.com/users/coderly/followers","following_url":"https://api.github.com/users/coderly/following{/other_user}","gists_url":"https://api.github.com/users/coderly/gists{/gist_id}","starred_url":"https://api.github.com/users/coderly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderly/subscriptions","organizations_url":"https://api.github.com/users/coderly/orgs","repos_url":"https://api.github.com/users/coderly/repos","events_url":"https://api.github.com/users/coderly/events{/privacy}","received_events_url":"https://api.github.com/users/coderly/received_events","type":"Organization","site_admin":false},"repo":{"id":37308481,"name":"ember-micro-addon","full_name":"coderly/ember-micro-addon","owner":{"login":"coderly","id":2837781,"avatar_url":"https://avatars.githubusercontent.com/u/2837781?v=3","gravatar_id":"","url":"https://api.github.com/users/coderly","html_url":"https://github.com/coderly","followers_url":"https://api.github.com/users/coderly/followers","following_url":"https://api.github.com/users/coderly/following{/other_user}","gists_url":"https://api.github.com/users/coderly/gists{/gist_id}","starred_url":"https://api.github.com/users/coderly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderly/subscriptions","organizations_url":"https://api.github.com/users/coderly/orgs","repos_url":"https://api.github.com/users/coderly/repos","events_url":"https://api.github.com/users/coderly/events{/privacy}","received_events_url":"https://api.github.com/users/coderly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coderly/ember-micro-addon","description":"Command line interface for ember micro addons","fork":false,"url":"https://api.github.com/repos/coderly/ember-micro-addon","forks_url":"https://api.github.com/repos/coderly/ember-micro-addon/forks","keys_url":"https://api.github.com/repos/coderly/ember-micro-addon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coderly/ember-micro-addon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coderly/ember-micro-addon/teams","hooks_url":"https://api.github.com/repos/coderly/ember-micro-addon/hooks","issue_events_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues/events{/number}","events_url":"https://api.github.com/repos/coderly/ember-micro-addon/events","assignees_url":"https://api.github.com/repos/coderly/ember-micro-addon/assignees{/user}","branches_url":"https://api.github.com/repos/coderly/ember-micro-addon/branches{/branch}","tags_url":"https://api.github.com/repos/coderly/ember-micro-addon/tags","blobs_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/refs{/sha}","trees_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coderly/ember-micro-addon/statuses/{sha}","languages_url":"https://api.github.com/repos/coderly/ember-micro-addon/languages","stargazers_url":"https://api.github.com/repos/coderly/ember-micro-addon/stargazers","contributors_url":"https://api.github.com/repos/coderly/ember-micro-addon/contributors","subscribers_url":"https://api.github.com/repos/coderly/ember-micro-addon/subscribers","subscription_url":"https://api.github.com/repos/coderly/ember-micro-addon/subscription","commits_url":"https://api.github.com/repos/coderly/ember-micro-addon/commits{/sha}","git_commits_url":"https://api.github.com/repos/coderly/ember-micro-addon/git/commits{/sha}","comments_url":"https://api.github.com/repos/coderly/ember-micro-addon/comments{/number}","issue_comment_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues/comments{/number}","contents_url":"https://api.github.com/repos/coderly/ember-micro-addon/contents/{+path}","compare_url":"https://api.github.com/repos/coderly/ember-micro-addon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coderly/ember-micro-addon/merges","archive_url":"https://api.github.com/repos/coderly/ember-micro-addon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coderly/ember-micro-addon/downloads","issues_url":"https://api.github.com/repos/coderly/ember-micro-addon/issues{/number}","pulls_url":"https://api.github.com/repos/coderly/ember-micro-addon/pulls{/number}","milestones_url":"https://api.github.com/repos/coderly/ember-micro-addon/milestones{/number}","notifications_url":"https://api.github.com/repos/coderly/ember-micro-addon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coderly/ember-micro-addon/labels{/name}","releases_url":"https://api.github.com/repos/coderly/ember-micro-addon/releases{/id}","created_at":"2015-06-12T07:31:38Z","updated_at":"2015-06-16T11:00:27Z","pushed_at":"2015-06-29T12:21:27Z","git_url":"git://github.com/coderly/ember-micro-addon.git","ssh_url":"git@github.com:coderly/ember-micro-addon.git","clone_url":"https://github.com/coderly/ember-micro-addon.git","svn_url":"https://github.com/coderly/ember-micro-addon","homepage":null,"size":344,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/17"},"html":{"href":"https://github.com/coderly/ember-micro-addon/pull/17"},"issue":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/issues/17"},"comments":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/coderly/ember-micro-addon/statuses/a2004271dcd945b3faaae769b122efa1d4285aa2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"begedin","id":1925540,"avatar_url":"https://avatars.githubusercontent.com/u/1925540?v=3","gravatar_id":"","url":"https://api.github.com/users/begedin","html_url":"https://github.com/begedin","followers_url":"https://api.github.com/users/begedin/followers","following_url":"https://api.github.com/users/begedin/following{/other_user}","gists_url":"https://api.github.com/users/begedin/gists{/gist_id}","starred_url":"https://api.github.com/users/begedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begedin/subscriptions","organizations_url":"https://api.github.com/users/begedin/orgs","repos_url":"https://api.github.com/users/begedin/repos","events_url":"https://api.github.com/users/begedin/events{/privacy}","received_events_url":"https://api.github.com/users/begedin/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":11,"additions":172,"deletions":7,"changed_files":11}}