{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments/65988019","id":65988019,"diff_hunk":"@@ -165,6 +165,13 @@ export class PolymerCli {\n     let command = this.commands.get(commandName);\n     logger.debug('Running command...');\n \n+    // Do any pre-run command initialization here, useful for setting up","path":"src/polymer-cli.ts","position":4,"original_position":4,"commit_id":"068c761fa192fc771c3206c200d0033526f2984d","original_commit_id":"068c761fa192fc771c3206c200d0033526f2984d","user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"body":"Move comment to the declaration of `init`","created_at":"2016-06-06T23:33:17Z","updated_at":"2016-06-06T23:33:17Z","html_url":"https://github.com/Polymer/polymer-cli/pull/246#discussion_r65988019","pull_request_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246","_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments/65988019"},"html":{"href":"https://github.com/Polymer/polymer-cli/pull/246#discussion_r65988019"},"pull_request":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246","id":72794632,"html_url":"https://github.com/Polymer/polymer-cli/pull/246","diff_url":"https://github.com/Polymer/polymer-cli/pull/246.diff","patch_url":"https://github.com/Polymer/polymer-cli/pull/246.patch","issue_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/246","number":246,"state":"open","locked":false,"title":"Refactor init command tests and make the cli commands more testable","user":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"body":"There was considerable configuration/boilerplate brought into the `init` command tests, as a workaround to how self-contained and complex the command was. This refactoring exposes the yeoman environment as a property of the command, allowing us to inspect yeoman, its generators, and its prompts. As a result we can now remove the mockery dependency that was added for this.\r\n\r\n/cc @justinfagnani ","created_at":"2016-06-06T23:30:07Z","updated_at":"2016-06-06T23:33:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7f370e513dbac6f65902a4bcfb491b8639ba82a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246/commits","review_comments_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246/comments","review_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/246/comments","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/068c761fa192fc771c3206c200d0033526f2984d","head":{"label":"Polymer:init-testing","ref":"init-testing","sha":"068c761fa192fc771c3206c200d0033526f2984d","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":51951003,"name":"polymer-cli","full_name":"Polymer/polymer-cli","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer-cli","description":"A command-line tool for Polymer projects","fork":false,"url":"https://api.github.com/repos/Polymer/polymer-cli","forks_url":"https://api.github.com/repos/Polymer/polymer-cli/forks","keys_url":"https://api.github.com/repos/Polymer/polymer-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer-cli/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer-cli/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer-cli/events","assignees_url":"https://api.github.com/repos/Polymer/polymer-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer-cli/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer-cli/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer-cli/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer-cli/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer-cli/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer-cli/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer-cli/merges","archive_url":"https://api.github.com/repos/Polymer/polymer-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer-cli/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/polymer-cli/deployments","created_at":"2016-02-17T19:57:15Z","updated_at":"2016-06-06T11:27:30Z","pushed_at":"2016-06-06T23:30:41Z","git_url":"git://github.com/Polymer/polymer-cli.git","ssh_url":"git@github.com:Polymer/polymer-cli.git","clone_url":"https://github.com/Polymer/polymer-cli.git","svn_url":"https://github.com/Polymer/polymer-cli","homepage":null,"size":319,"stargazers_count":63,"watchers_count":63,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":46,"forks":17,"open_issues":46,"watchers":63,"default_branch":"master"}},"base":{"label":"Polymer:master","ref":"master","sha":"3520a54f4d2b0977c538c4cb8387c4b39133b3c7","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":51951003,"name":"polymer-cli","full_name":"Polymer/polymer-cli","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer-cli","description":"A command-line tool for Polymer projects","fork":false,"url":"https://api.github.com/repos/Polymer/polymer-cli","forks_url":"https://api.github.com/repos/Polymer/polymer-cli/forks","keys_url":"https://api.github.com/repos/Polymer/polymer-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer-cli/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer-cli/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer-cli/events","assignees_url":"https://api.github.com/repos/Polymer/polymer-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer-cli/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer-cli/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer-cli/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer-cli/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer-cli/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer-cli/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer-cli/merges","archive_url":"https://api.github.com/repos/Polymer/polymer-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer-cli/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/polymer-cli/deployments","created_at":"2016-02-17T19:57:15Z","updated_at":"2016-06-06T11:27:30Z","pushed_at":"2016-06-06T23:30:41Z","git_url":"git://github.com/Polymer/polymer-cli.git","ssh_url":"git@github.com:Polymer/polymer-cli.git","clone_url":"https://github.com/Polymer/polymer-cli.git","svn_url":"https://github.com/Polymer/polymer-cli","homepage":null,"size":319,"stargazers_count":63,"watchers_count":63,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":46,"forks":17,"open_issues":46,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246"},"html":{"href":"https://github.com/Polymer/polymer-cli/pull/246"},"issue":{"href":"https://api.github.com/repos/Polymer/polymer-cli/issues/246"},"comments":{"href":"https://api.github.com/repos/Polymer/polymer-cli/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/polymer-cli/statuses/068c761fa192fc771c3206c200d0033526f2984d"}}}}
{"actor":{"display_login":"justinfagnani"}}