{"action":"closed","number":215,"pull_request":{"url":"https://api.github.com/repos/heroku/heroku-cli/pulls/215","id":61599644,"html_url":"https://github.com/heroku/heroku-cli/pull/215","diff_url":"https://github.com/heroku/heroku-cli/pull/215.diff","patch_url":"https://github.com/heroku/heroku-cli/pull/215.patch","issue_url":"https://api.github.com/repos/heroku/heroku-cli/issues/215","number":215,"state":"closed","locked":false,"title":"fix double updating bug","user":{"login":"dickeyxxx","id":216188,"avatar_url":"https://avatars.githubusercontent.com/u/216188?v=3","gravatar_id":"","url":"https://api.github.com/users/dickeyxxx","html_url":"https://github.com/dickeyxxx","followers_url":"https://api.github.com/users/dickeyxxx/followers","following_url":"https://api.github.com/users/dickeyxxx/following{/other_user}","gists_url":"https://api.github.com/users/dickeyxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/dickeyxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dickeyxxx/subscriptions","organizations_url":"https://api.github.com/users/dickeyxxx/orgs","repos_url":"https://api.github.com/users/dickeyxxx/repos","events_url":"https://api.github.com/users/dickeyxxx/events{/privacy}","received_events_url":"https://api.github.com/users/dickeyxxx/received_events","type":"User","site_admin":false},"body":"running `heroku update` still causes the blocking update to run. This is happening because when the CLI is updated, the update lock file is cleared to force an autoupdate and reexec of the command. Generally this is good, because it will make sure that everything is updated using the new CLI. The problem is when the command is actually update, it will force a blocking update, then run the command which is to update.\r\n\r\nThis just checks before running a blocking update if the command is to update. If so, there is no need to do the blocking update step.\r\n\r\nbefore:\r\n```\r\n$ heroku update master\r\nUpdating Heroku v4 CLI to 4.27.25-3b727e5 (master)... done\r\nheroku-cli: Adding dependencies... done\r\nUpdating plugins... no plugins to update.\r\nUpdating plugins... no plugins to update.\r\n```\r\n\r\nafter:\r\n```\r\n$ heroku update dev\r\nUpdating Heroku v4 CLI to 4.27.25-b97ac29 (dev)... done\r\nheroku-cli: Adding dependencies... done\r\nheroku-cli: Updating plugins... no plugins to update.\r\n```","created_at":"2016-03-03T18:01:43Z","updated_at":"2016-03-03T21:22:54Z","closed_at":"2016-03-03T21:22:53Z","merged_at":"2016-03-03T21:22:53Z","merge_commit_sha":"8d0c453c5a49f863062bcd61773f7727acec1c2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/heroku/heroku-cli/pulls/215/commits","review_comments_url":"https://api.github.com/repos/heroku/heroku-cli/pulls/215/comments","review_comment_url":"https://api.github.com/repos/heroku/heroku-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heroku/heroku-cli/issues/215/comments","statuses_url":"https://api.github.com/repos/heroku/heroku-cli/statuses/437520dad66284115ac420aed2d639f402a2ba31","head":{"label":"heroku:update-fix","ref":"update-fix","sha":"437520dad66284115ac420aed2d639f402a2ba31","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":28269754,"name":"heroku-cli","full_name":"heroku/heroku-cli","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/heroku-cli","description":"Heroku Toolbelt v4","fork":false,"url":"https://api.github.com/repos/heroku/heroku-cli","forks_url":"https://api.github.com/repos/heroku/heroku-cli/forks","keys_url":"https://api.github.com/repos/heroku/heroku-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/heroku-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/heroku-cli/teams","hooks_url":"https://api.github.com/repos/heroku/heroku-cli/hooks","issue_events_url":"https://api.github.com/repos/heroku/heroku-cli/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/heroku-cli/events","assignees_url":"https://api.github.com/repos/heroku/heroku-cli/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/heroku-cli/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/heroku-cli/tags","blobs_url":"https://api.github.com/repos/heroku/heroku-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/heroku-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/heroku-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/heroku-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/heroku-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/heroku-cli/languages","stargazers_url":"https://api.github.com/repos/heroku/heroku-cli/stargazers","contributors_url":"https://api.github.com/repos/heroku/heroku-cli/contributors","subscribers_url":"https://api.github.com/repos/heroku/heroku-cli/subscribers","subscription_url":"https://api.github.com/repos/heroku/heroku-cli/subscription","commits_url":"https://api.github.com/repos/heroku/heroku-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/heroku-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/heroku-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/heroku-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/heroku-cli/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/heroku-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/heroku-cli/merges","archive_url":"https://api.github.com/repos/heroku/heroku-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/heroku-cli/downloads","issues_url":"https://api.github.com/repos/heroku/heroku-cli/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/heroku-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/heroku-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/heroku-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/heroku-cli/labels{/name}","releases_url":"https://api.github.com/repos/heroku/heroku-cli/releases{/id}","deployments_url":"https://api.github.com/repos/heroku/heroku-cli/deployments","created_at":"2014-12-20T14:52:39Z","updated_at":"2016-03-02T15:28:56Z","pushed_at":"2016-03-03T21:22:53Z","git_url":"git://github.com/heroku/heroku-cli.git","ssh_url":"git@github.com:heroku/heroku-cli.git","clone_url":"https://github.com/heroku/heroku-cli.git","svn_url":"https://github.com/heroku/heroku-cli","homepage":"https://toolbelt.heroku.com","size":880,"stargazers_count":80,"watchers_count":80,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":28,"forks":12,"open_issues":28,"watchers":80,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"9ad7ed2f7f454188e58803e27b11f676444f371d","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":28269754,"name":"heroku-cli","full_name":"heroku/heroku-cli","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/heroku-cli","description":"Heroku Toolbelt v4","fork":false,"url":"https://api.github.com/repos/heroku/heroku-cli","forks_url":"https://api.github.com/repos/heroku/heroku-cli/forks","keys_url":"https://api.github.com/repos/heroku/heroku-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/heroku-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/heroku-cli/teams","hooks_url":"https://api.github.com/repos/heroku/heroku-cli/hooks","issue_events_url":"https://api.github.com/repos/heroku/heroku-cli/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/heroku-cli/events","assignees_url":"https://api.github.com/repos/heroku/heroku-cli/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/heroku-cli/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/heroku-cli/tags","blobs_url":"https://api.github.com/repos/heroku/heroku-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/heroku-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/heroku-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/heroku-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/heroku-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/heroku-cli/languages","stargazers_url":"https://api.github.com/repos/heroku/heroku-cli/stargazers","contributors_url":"https://api.github.com/repos/heroku/heroku-cli/contributors","subscribers_url":"https://api.github.com/repos/heroku/heroku-cli/subscribers","subscription_url":"https://api.github.com/repos/heroku/heroku-cli/subscription","commits_url":"https://api.github.com/repos/heroku/heroku-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/heroku-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/heroku-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/heroku-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/heroku-cli/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/heroku-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/heroku-cli/merges","archive_url":"https://api.github.com/repos/heroku/heroku-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/heroku-cli/downloads","issues_url":"https://api.github.com/repos/heroku/heroku-cli/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/heroku-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/heroku-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/heroku-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/heroku-cli/labels{/name}","releases_url":"https://api.github.com/repos/heroku/heroku-cli/releases{/id}","deployments_url":"https://api.github.com/repos/heroku/heroku-cli/deployments","created_at":"2014-12-20T14:52:39Z","updated_at":"2016-03-02T15:28:56Z","pushed_at":"2016-03-03T21:22:53Z","git_url":"git://github.com/heroku/heroku-cli.git","ssh_url":"git@github.com:heroku/heroku-cli.git","clone_url":"https://github.com/heroku/heroku-cli.git","svn_url":"https://github.com/heroku/heroku-cli","homepage":"https://toolbelt.heroku.com","size":880,"stargazers_count":80,"watchers_count":80,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":28,"forks":12,"open_issues":28,"watchers":80,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/heroku-cli/pulls/215"},"html":{"href":"https://github.com/heroku/heroku-cli/pull/215"},"issue":{"href":"https://api.github.com/repos/heroku/heroku-cli/issues/215"},"comments":{"href":"https://api.github.com/repos/heroku/heroku-cli/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/heroku-cli/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/heroku-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heroku/heroku-cli/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/heroku-cli/statuses/437520dad66284115ac420aed2d639f402a2ba31"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dickeyxxx","id":216188,"avatar_url":"https://avatars.githubusercontent.com/u/216188?v=3","gravatar_id":"","url":"https://api.github.com/users/dickeyxxx","html_url":"https://github.com/dickeyxxx","followers_url":"https://api.github.com/users/dickeyxxx/followers","following_url":"https://api.github.com/users/dickeyxxx/following{/other_user}","gists_url":"https://api.github.com/users/dickeyxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/dickeyxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dickeyxxx/subscriptions","organizations_url":"https://api.github.com/users/dickeyxxx/orgs","repos_url":"https://api.github.com/users/dickeyxxx/repos","events_url":"https://api.github.com/users/dickeyxxx/events{/privacy}","received_events_url":"https://api.github.com/users/dickeyxxx/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":2,"additions":11,"deletions":3,"changed_files":2}}