{"action":"created","comment":{"url":"https://api.github.com/repos/mjs/juju/pulls/comments/112381730","pull_request_review_id":33690892,"id":112381730,"diff_hunk":"@@ -83,7 +90,36 @@ func (c *removeApplicationCommand) getAPI() (removeApplicationAPI, int, error) {\n \treturn application.NewClient(root), version, nil\n }\n \n+func (c *removeApplicationCommand) getCAASAPI() (removeCAASApplicationAPI, error) {\n+\troot, err := c.NewAPIRoot()\n+\tif err != nil {\n+\t\treturn nil, errors.Trace(err)\n+\t}\n+\treturn caasapplication.NewClient(root), nil\n+}\n+\n func (c *removeApplicationCommand) Run(ctx *cmd.Context) error {\n+\tstore := c.ClientStore()\n+\tmodelDetails, err := store.ModelByName(c.ControllerName(), c.ModelName())\n+\tif errors.IsNotFound(err) {","path":"cmd/juju/application/removeapplication.go","position":39,"original_position":39,"commit_id":"996abf551e4fe6eb9af8ef0a16fa5d588b3fc378","original_commit_id":"996abf551e4fe6eb9af8ef0a16fa5d588b3fc378","user":{"login":"4a6f656c","id":8142769,"avatar_url":"https://avatars0.githubusercontent.com/u/8142769?v=3","gravatar_id":"","url":"https://api.github.com/users/4a6f656c","html_url":"https://github.com/4a6f656c","followers_url":"https://api.github.com/users/4a6f656c/followers","following_url":"https://api.github.com/users/4a6f656c/following{/other_user}","gists_url":"https://api.github.com/users/4a6f656c/gists{/gist_id}","starred_url":"https://api.github.com/users/4a6f656c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4a6f656c/subscriptions","organizations_url":"https://api.github.com/users/4a6f656c/orgs","repos_url":"https://api.github.com/users/4a6f656c/repos","events_url":"https://api.github.com/users/4a6f656c/events{/privacy}","received_events_url":"https://api.github.com/users/4a6f656c/received_events","type":"User","site_admin":false},"body":"Which part?","created_at":"2017-04-20T07:20:20Z","updated_at":"2017-04-20T07:20:20Z","html_url":"https://github.com/mjs/juju/pull/21#discussion_r112381730","pull_request_url":"https://api.github.com/repos/mjs/juju/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/mjs/juju/pulls/comments/112381730"},"html":{"href":"https://github.com/mjs/juju/pull/21#discussion_r112381730"},"pull_request":{"href":"https://api.github.com/repos/mjs/juju/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/mjs/juju/pulls/21","id":116684581,"html_url":"https://github.com/mjs/juju/pull/21","diff_url":"https://github.com/mjs/juju/pull/21.diff","patch_url":"https://github.com/mjs/juju/pull/21.patch","issue_url":"https://api.github.com/repos/mjs/juju/issues/21","number":21,"state":"closed","locked":false,"title":"Add support for 'juju remove-application' on a CAAS model.","user":{"login":"4a6f656c","id":8142769,"avatar_url":"https://avatars0.githubusercontent.com/u/8142769?v=3","gravatar_id":"","url":"https://api.github.com/users/4a6f656c","html_url":"https://github.com/4a6f656c","followers_url":"https://api.github.com/users/4a6f656c/followers","following_url":"https://api.github.com/users/4a6f656c/following{/other_user}","gists_url":"https://api.github.com/users/4a6f656c/gists{/gist_id}","starred_url":"https://api.github.com/users/4a6f656c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4a6f656c/subscriptions","organizations_url":"https://api.github.com/users/4a6f656c/orgs","repos_url":"https://api.github.com/users/4a6f656c/repos","events_url":"https://api.github.com/users/4a6f656c/events{/privacy}","received_events_url":"https://api.github.com/users/4a6f656c/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-20T03:36:16Z","updated_at":"2017-04-20T07:20:20Z","closed_at":"2017-04-20T06:00:17Z","merged_at":"2017-04-20T06:00:17Z","merge_commit_sha":"fce33bbcff9eea2ed5cda4928cc9e99454a7205a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mjs/juju/pulls/21/commits","review_comments_url":"https://api.github.com/repos/mjs/juju/pulls/21/comments","review_comment_url":"https://api.github.com/repos/mjs/juju/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mjs/juju/issues/21/comments","statuses_url":"https://api.github.com/repos/mjs/juju/statuses/996abf551e4fe6eb9af8ef0a16fa5d588b3fc378","head":{"label":"4a6f656c:caas-prototype-apprem","ref":"caas-prototype-apprem","sha":"996abf551e4fe6eb9af8ef0a16fa5d588b3fc378","user":{"login":"4a6f656c","id":8142769,"avatar_url":"https://avatars0.githubusercontent.com/u/8142769?v=3","gravatar_id":"","url":"https://api.github.com/users/4a6f656c","html_url":"https://github.com/4a6f656c","followers_url":"https://api.github.com/users/4a6f656c/followers","following_url":"https://api.github.com/users/4a6f656c/following{/other_user}","gists_url":"https://api.github.com/users/4a6f656c/gists{/gist_id}","starred_url":"https://api.github.com/users/4a6f656c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4a6f656c/subscriptions","organizations_url":"https://api.github.com/users/4a6f656c/orgs","repos_url":"https://api.github.com/users/4a6f656c/repos","events_url":"https://api.github.com/users/4a6f656c/events{/privacy}","received_events_url":"https://api.github.com/users/4a6f656c/received_events","type":"User","site_admin":false},"repo":{"id":82937250,"name":"juju","full_name":"4a6f656c/juju","owner":{"login":"4a6f656c","id":8142769,"avatar_url":"https://avatars0.githubusercontent.com/u/8142769?v=3","gravatar_id":"","url":"https://api.github.com/users/4a6f656c","html_url":"https://github.com/4a6f656c","followers_url":"https://api.github.com/users/4a6f656c/followers","following_url":"https://api.github.com/users/4a6f656c/following{/other_user}","gists_url":"https://api.github.com/users/4a6f656c/gists{/gist_id}","starred_url":"https://api.github.com/users/4a6f656c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4a6f656c/subscriptions","organizations_url":"https://api.github.com/users/4a6f656c/orgs","repos_url":"https://api.github.com/users/4a6f656c/repos","events_url":"https://api.github.com/users/4a6f656c/events{/privacy}","received_events_url":"https://api.github.com/users/4a6f656c/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/4a6f656c/juju","description":"juju is devops distilled","fork":true,"url":"https://api.github.com/repos/4a6f656c/juju","forks_url":"https://api.github.com/repos/4a6f656c/juju/forks","keys_url":"https://api.github.com/repos/4a6f656c/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4a6f656c/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4a6f656c/juju/teams","hooks_url":"https://api.github.com/repos/4a6f656c/juju/hooks","issue_events_url":"https://api.github.com/repos/4a6f656c/juju/issues/events{/number}","events_url":"https://api.github.com/repos/4a6f656c/juju/events","assignees_url":"https://api.github.com/repos/4a6f656c/juju/assignees{/user}","branches_url":"https://api.github.com/repos/4a6f656c/juju/branches{/branch}","tags_url":"https://api.github.com/repos/4a6f656c/juju/tags","blobs_url":"https://api.github.com/repos/4a6f656c/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4a6f656c/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4a6f656c/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/4a6f656c/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4a6f656c/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/4a6f656c/juju/languages","stargazers_url":"https://api.github.com/repos/4a6f656c/juju/stargazers","contributors_url":"https://api.github.com/repos/4a6f656c/juju/contributors","subscribers_url":"https://api.github.com/repos/4a6f656c/juju/subscribers","subscription_url":"https://api.github.com/repos/4a6f656c/juju/subscription","commits_url":"https://api.github.com/repos/4a6f656c/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/4a6f656c/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/4a6f656c/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/4a6f656c/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/4a6f656c/juju/contents/{+path}","compare_url":"https://api.github.com/repos/4a6f656c/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4a6f656c/juju/merges","archive_url":"https://api.github.com/repos/4a6f656c/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4a6f656c/juju/downloads","issues_url":"https://api.github.com/repos/4a6f656c/juju/issues{/number}","pulls_url":"https://api.github.com/repos/4a6f656c/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/4a6f656c/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/4a6f656c/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4a6f656c/juju/labels{/name}","releases_url":"https://api.github.com/repos/4a6f656c/juju/releases{/id}","deployments_url":"https://api.github.com/repos/4a6f656c/juju/deployments","created_at":"2017-02-23T14:50:01Z","updated_at":"2017-02-23T14:50:18Z","pushed_at":"2017-04-20T07:19:45Z","git_url":"git://github.com/4a6f656c/juju.git","ssh_url":"git@github.com:4a6f656c/juju.git","clone_url":"https://github.com/4a6f656c/juju.git","svn_url":"https://github.com/4a6f656c/juju","homepage":"juju.ubuntu.com","size":103650,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":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":0,"default_branch":"staging"}},"base":{"label":"mjs:caas-prototype","ref":"caas-prototype","sha":"927c13e7743d57047d8bd1ac556440dd11f6035e","user":{"login":"mjs","id":14993,"avatar_url":"https://avatars3.githubusercontent.com/u/14993?v=3","gravatar_id":"","url":"https://api.github.com/users/mjs","html_url":"https://github.com/mjs","followers_url":"https://api.github.com/users/mjs/followers","following_url":"https://api.github.com/users/mjs/following{/other_user}","gists_url":"https://api.github.com/users/mjs/gists{/gist_id}","starred_url":"https://api.github.com/users/mjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjs/subscriptions","organizations_url":"https://api.github.com/users/mjs/orgs","repos_url":"https://api.github.com/users/mjs/repos","events_url":"https://api.github.com/users/mjs/events{/privacy}","received_events_url":"https://api.github.com/users/mjs/received_events","type":"User","site_admin":false},"repo":{"id":20458097,"name":"juju","full_name":"mjs/juju","owner":{"login":"mjs","id":14993,"avatar_url":"https://avatars3.githubusercontent.com/u/14993?v=3","gravatar_id":"","url":"https://api.github.com/users/mjs","html_url":"https://github.com/mjs","followers_url":"https://api.github.com/users/mjs/followers","following_url":"https://api.github.com/users/mjs/following{/other_user}","gists_url":"https://api.github.com/users/mjs/gists{/gist_id}","starred_url":"https://api.github.com/users/mjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjs/subscriptions","organizations_url":"https://api.github.com/users/mjs/orgs","repos_url":"https://api.github.com/users/mjs/repos","events_url":"https://api.github.com/users/mjs/events{/privacy}","received_events_url":"https://api.github.com/users/mjs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjs/juju","description":"juju is devops distilled","fork":true,"url":"https://api.github.com/repos/mjs/juju","forks_url":"https://api.github.com/repos/mjs/juju/forks","keys_url":"https://api.github.com/repos/mjs/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjs/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjs/juju/teams","hooks_url":"https://api.github.com/repos/mjs/juju/hooks","issue_events_url":"https://api.github.com/repos/mjs/juju/issues/events{/number}","events_url":"https://api.github.com/repos/mjs/juju/events","assignees_url":"https://api.github.com/repos/mjs/juju/assignees{/user}","branches_url":"https://api.github.com/repos/mjs/juju/branches{/branch}","tags_url":"https://api.github.com/repos/mjs/juju/tags","blobs_url":"https://api.github.com/repos/mjs/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjs/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjs/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjs/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjs/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/mjs/juju/languages","stargazers_url":"https://api.github.com/repos/mjs/juju/stargazers","contributors_url":"https://api.github.com/repos/mjs/juju/contributors","subscribers_url":"https://api.github.com/repos/mjs/juju/subscribers","subscription_url":"https://api.github.com/repos/mjs/juju/subscription","commits_url":"https://api.github.com/repos/mjs/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjs/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjs/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjs/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjs/juju/contents/{+path}","compare_url":"https://api.github.com/repos/mjs/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjs/juju/merges","archive_url":"https://api.github.com/repos/mjs/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjs/juju/downloads","issues_url":"https://api.github.com/repos/mjs/juju/issues{/number}","pulls_url":"https://api.github.com/repos/mjs/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/mjs/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/mjs/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjs/juju/labels{/name}","releases_url":"https://api.github.com/repos/mjs/juju/releases{/id}","deployments_url":"https://api.github.com/repos/mjs/juju/deployments","created_at":"2014-06-03T20:21:02Z","updated_at":"2016-02-04T03:41:30Z","pushed_at":"2017-04-20T06:00:17Z","git_url":"git://github.com/mjs/juju.git","ssh_url":"git@github.com:mjs/juju.git","clone_url":"https://github.com/mjs/juju.git","svn_url":"https://github.com/mjs/juju","homepage":null,"size":98707,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mjs/juju/pulls/21"},"html":{"href":"https://github.com/mjs/juju/pull/21"},"issue":{"href":"https://api.github.com/repos/mjs/juju/issues/21"},"comments":{"href":"https://api.github.com/repos/mjs/juju/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/mjs/juju/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/mjs/juju/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mjs/juju/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/mjs/juju/statuses/996abf551e4fe6eb9af8ef0a16fa5d588b3fc378"}}}}
{"actor":{"display_login":"4a6f656c"}}