{"action":"created","comment":{"url":"https://api.github.com/repos/nanobox-io/nanobox/pulls/comments/146894165","pull_request_review_id":71902136,"id":146894165,"diff_hunk":"@@ -49,5 +52,29 @@ func Run(path string) error {\n \t// update the model\n \tupdate := newUpdate()\n \n+\tnewVersion := getCurrentVersion(path)\n+\n+\tfmt.Printf(\"Updated to version: %s\", newVersion)\n+\n+\tprintGithubReleaseUrl(newVersion)","path":"util/update/run.go","position":26,"original_position":26,"commit_id":"d72556574b046b3bb5f68a49f295596058557658","original_commit_id":"d72556574b046b3bb5f68a49f295596058557658","user":{"login":"glinton","id":2653109,"avatar_url":"https://avatars0.githubusercontent.com/u/2653109?v=4","gravatar_id":"","url":"https://api.github.com/users/glinton","html_url":"https://github.com/glinton","followers_url":"https://api.github.com/users/glinton/followers","following_url":"https://api.github.com/users/glinton/following{/other_user}","gists_url":"https://api.github.com/users/glinton/gists{/gist_id}","starred_url":"https://api.github.com/users/glinton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glinton/subscriptions","organizations_url":"https://api.github.com/users/glinton/orgs","repos_url":"https://api.github.com/users/glinton/repos","events_url":"https://api.github.com/users/glinton/events{/privacy}","received_events_url":"https://api.github.com/users/glinton/received_events","type":"User","site_admin":false},"body":"Un-needed function call.","created_at":"2017-10-25T15:25:47Z","updated_at":"2017-10-25T15:25:54Z","html_url":"https://github.com/nanobox-io/nanobox/pull/607#discussion_r146894165","pull_request_url":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/nanobox-io/nanobox/pulls/comments/146894165"},"html":{"href":"https://github.com/nanobox-io/nanobox/pull/607#discussion_r146894165"},"pull_request":{"href":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607"}}},"pull_request":{"url":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607","id":148571899,"html_url":"https://github.com/nanobox-io/nanobox/pull/607","diff_url":"https://github.com/nanobox-io/nanobox/pull/607.diff","patch_url":"https://github.com/nanobox-io/nanobox/pull/607.patch","issue_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/607","number":607,"state":"open","locked":false,"title":"Add version output to update","user":{"login":"rgoomar","id":1437754,"avatar_url":"https://avatars0.githubusercontent.com/u/1437754?v=4","gravatar_id":"","url":"https://api.github.com/users/rgoomar","html_url":"https://github.com/rgoomar","followers_url":"https://api.github.com/users/rgoomar/followers","following_url":"https://api.github.com/users/rgoomar/following{/other_user}","gists_url":"https://api.github.com/users/rgoomar/gists{/gist_id}","starred_url":"https://api.github.com/users/rgoomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgoomar/subscriptions","organizations_url":"https://api.github.com/users/rgoomar/orgs","repos_url":"https://api.github.com/users/rgoomar/repos","events_url":"https://api.github.com/users/rgoomar/events{/privacy}","received_events_url":"https://api.github.com/users/rgoomar/received_events","type":"User","site_admin":false},"body":"It ends up looking like this:\r\n```\r\nCurrent version: Nanobox Version 0.0.0-now (custom)\r\n\r\n   9.81/9.81MB [****************************************  100.00%]\r\nUpdated to version: Nanobox Version 2.3.0-171025T0249 (28ee681)\r\n```\r\n^ above output is from me replacing my current nanobox binary with a locally built one and updating.\r\nI tried to use `models.VersionString()`, but since it is a different binary, it doesn't have access to the correct version in the registry and just has the default of `0.0.0`. This is a bit of a hack, but it does use the nanobox binary to find the version. ","created_at":"2017-10-25T05:12:25Z","updated_at":"2017-10-25T15:25:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bf32883dc0bf0db9d860b29b691e6d815436b0d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607/commits","review_comments_url":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607/comments","review_comment_url":"https://api.github.com/repos/nanobox-io/nanobox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/607/comments","statuses_url":"https://api.github.com/repos/nanobox-io/nanobox/statuses/d72556574b046b3bb5f68a49f295596058557658","head":{"label":"rgoomar:add-version-to-update","ref":"add-version-to-update","sha":"d72556574b046b3bb5f68a49f295596058557658","user":{"login":"rgoomar","id":1437754,"avatar_url":"https://avatars0.githubusercontent.com/u/1437754?v=4","gravatar_id":"","url":"https://api.github.com/users/rgoomar","html_url":"https://github.com/rgoomar","followers_url":"https://api.github.com/users/rgoomar/followers","following_url":"https://api.github.com/users/rgoomar/following{/other_user}","gists_url":"https://api.github.com/users/rgoomar/gists{/gist_id}","starred_url":"https://api.github.com/users/rgoomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgoomar/subscriptions","organizations_url":"https://api.github.com/users/rgoomar/orgs","repos_url":"https://api.github.com/users/rgoomar/repos","events_url":"https://api.github.com/users/rgoomar/events{/privacy}","received_events_url":"https://api.github.com/users/rgoomar/received_events","type":"User","site_admin":false},"repo":{"id":105101877,"name":"nanobox","full_name":"rgoomar/nanobox","owner":{"login":"rgoomar","id":1437754,"avatar_url":"https://avatars0.githubusercontent.com/u/1437754?v=4","gravatar_id":"","url":"https://api.github.com/users/rgoomar","html_url":"https://github.com/rgoomar","followers_url":"https://api.github.com/users/rgoomar/followers","following_url":"https://api.github.com/users/rgoomar/following{/other_user}","gists_url":"https://api.github.com/users/rgoomar/gists{/gist_id}","starred_url":"https://api.github.com/users/rgoomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgoomar/subscriptions","organizations_url":"https://api.github.com/users/rgoomar/orgs","repos_url":"https://api.github.com/users/rgoomar/repos","events_url":"https://api.github.com/users/rgoomar/events{/privacy}","received_events_url":"https://api.github.com/users/rgoomar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rgoomar/nanobox","description":"The ideal platform for developers","fork":true,"url":"https://api.github.com/repos/rgoomar/nanobox","forks_url":"https://api.github.com/repos/rgoomar/nanobox/forks","keys_url":"https://api.github.com/repos/rgoomar/nanobox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rgoomar/nanobox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rgoomar/nanobox/teams","hooks_url":"https://api.github.com/repos/rgoomar/nanobox/hooks","issue_events_url":"https://api.github.com/repos/rgoomar/nanobox/issues/events{/number}","events_url":"https://api.github.com/repos/rgoomar/nanobox/events","assignees_url":"https://api.github.com/repos/rgoomar/nanobox/assignees{/user}","branches_url":"https://api.github.com/repos/rgoomar/nanobox/branches{/branch}","tags_url":"https://api.github.com/repos/rgoomar/nanobox/tags","blobs_url":"https://api.github.com/repos/rgoomar/nanobox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rgoomar/nanobox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rgoomar/nanobox/git/refs{/sha}","trees_url":"https://api.github.com/repos/rgoomar/nanobox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rgoomar/nanobox/statuses/{sha}","languages_url":"https://api.github.com/repos/rgoomar/nanobox/languages","stargazers_url":"https://api.github.com/repos/rgoomar/nanobox/stargazers","contributors_url":"https://api.github.com/repos/rgoomar/nanobox/contributors","subscribers_url":"https://api.github.com/repos/rgoomar/nanobox/subscribers","subscription_url":"https://api.github.com/repos/rgoomar/nanobox/subscription","commits_url":"https://api.github.com/repos/rgoomar/nanobox/commits{/sha}","git_commits_url":"https://api.github.com/repos/rgoomar/nanobox/git/commits{/sha}","comments_url":"https://api.github.com/repos/rgoomar/nanobox/comments{/number}","issue_comment_url":"https://api.github.com/repos/rgoomar/nanobox/issues/comments{/number}","contents_url":"https://api.github.com/repos/rgoomar/nanobox/contents/{+path}","compare_url":"https://api.github.com/repos/rgoomar/nanobox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rgoomar/nanobox/merges","archive_url":"https://api.github.com/repos/rgoomar/nanobox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rgoomar/nanobox/downloads","issues_url":"https://api.github.com/repos/rgoomar/nanobox/issues{/number}","pulls_url":"https://api.github.com/repos/rgoomar/nanobox/pulls{/number}","milestones_url":"https://api.github.com/repos/rgoomar/nanobox/milestones{/number}","notifications_url":"https://api.github.com/repos/rgoomar/nanobox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rgoomar/nanobox/labels{/name}","releases_url":"https://api.github.com/repos/rgoomar/nanobox/releases{/id}","deployments_url":"https://api.github.com/repos/rgoomar/nanobox/deployments","created_at":"2017-09-28T04:20:23Z","updated_at":"2017-09-28T04:20:25Z","pushed_at":"2017-10-25T11:21:40Z","git_url":"git://github.com/rgoomar/nanobox.git","ssh_url":"git@github.com:rgoomar/nanobox.git","clone_url":"https://github.com/rgoomar/nanobox.git","svn_url":"https://github.com/rgoomar/nanobox","homepage":"https://nanobox.io","size":29089,"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,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nanobox-io:master","ref":"master","sha":"28ee6818733bd481975180906727c5bca9514960","user":{"login":"nanobox-io","id":547673,"avatar_url":"https://avatars0.githubusercontent.com/u/547673?v=4","gravatar_id":"","url":"https://api.github.com/users/nanobox-io","html_url":"https://github.com/nanobox-io","followers_url":"https://api.github.com/users/nanobox-io/followers","following_url":"https://api.github.com/users/nanobox-io/following{/other_user}","gists_url":"https://api.github.com/users/nanobox-io/gists{/gist_id}","starred_url":"https://api.github.com/users/nanobox-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanobox-io/subscriptions","organizations_url":"https://api.github.com/users/nanobox-io/orgs","repos_url":"https://api.github.com/users/nanobox-io/repos","events_url":"https://api.github.com/users/nanobox-io/events{/privacy}","received_events_url":"https://api.github.com/users/nanobox-io/received_events","type":"Organization","site_admin":false},"repo":{"id":35048479,"name":"nanobox","full_name":"nanobox-io/nanobox","owner":{"login":"nanobox-io","id":547673,"avatar_url":"https://avatars0.githubusercontent.com/u/547673?v=4","gravatar_id":"","url":"https://api.github.com/users/nanobox-io","html_url":"https://github.com/nanobox-io","followers_url":"https://api.github.com/users/nanobox-io/followers","following_url":"https://api.github.com/users/nanobox-io/following{/other_user}","gists_url":"https://api.github.com/users/nanobox-io/gists{/gist_id}","starred_url":"https://api.github.com/users/nanobox-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanobox-io/subscriptions","organizations_url":"https://api.github.com/users/nanobox-io/orgs","repos_url":"https://api.github.com/users/nanobox-io/repos","events_url":"https://api.github.com/users/nanobox-io/events{/privacy}","received_events_url":"https://api.github.com/users/nanobox-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nanobox-io/nanobox","description":"The ideal platform for developers","fork":false,"url":"https://api.github.com/repos/nanobox-io/nanobox","forks_url":"https://api.github.com/repos/nanobox-io/nanobox/forks","keys_url":"https://api.github.com/repos/nanobox-io/nanobox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nanobox-io/nanobox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nanobox-io/nanobox/teams","hooks_url":"https://api.github.com/repos/nanobox-io/nanobox/hooks","issue_events_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/events{/number}","events_url":"https://api.github.com/repos/nanobox-io/nanobox/events","assignees_url":"https://api.github.com/repos/nanobox-io/nanobox/assignees{/user}","branches_url":"https://api.github.com/repos/nanobox-io/nanobox/branches{/branch}","tags_url":"https://api.github.com/repos/nanobox-io/nanobox/tags","blobs_url":"https://api.github.com/repos/nanobox-io/nanobox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nanobox-io/nanobox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nanobox-io/nanobox/git/refs{/sha}","trees_url":"https://api.github.com/repos/nanobox-io/nanobox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nanobox-io/nanobox/statuses/{sha}","languages_url":"https://api.github.com/repos/nanobox-io/nanobox/languages","stargazers_url":"https://api.github.com/repos/nanobox-io/nanobox/stargazers","contributors_url":"https://api.github.com/repos/nanobox-io/nanobox/contributors","subscribers_url":"https://api.github.com/repos/nanobox-io/nanobox/subscribers","subscription_url":"https://api.github.com/repos/nanobox-io/nanobox/subscription","commits_url":"https://api.github.com/repos/nanobox-io/nanobox/commits{/sha}","git_commits_url":"https://api.github.com/repos/nanobox-io/nanobox/git/commits{/sha}","comments_url":"https://api.github.com/repos/nanobox-io/nanobox/comments{/number}","issue_comment_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/comments{/number}","contents_url":"https://api.github.com/repos/nanobox-io/nanobox/contents/{+path}","compare_url":"https://api.github.com/repos/nanobox-io/nanobox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nanobox-io/nanobox/merges","archive_url":"https://api.github.com/repos/nanobox-io/nanobox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nanobox-io/nanobox/downloads","issues_url":"https://api.github.com/repos/nanobox-io/nanobox/issues{/number}","pulls_url":"https://api.github.com/repos/nanobox-io/nanobox/pulls{/number}","milestones_url":"https://api.github.com/repos/nanobox-io/nanobox/milestones{/number}","notifications_url":"https://api.github.com/repos/nanobox-io/nanobox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nanobox-io/nanobox/labels{/name}","releases_url":"https://api.github.com/repos/nanobox-io/nanobox/releases{/id}","deployments_url":"https://api.github.com/repos/nanobox-io/nanobox/deployments","created_at":"2015-05-04T17:19:59Z","updated_at":"2017-10-25T13:56:43Z","pushed_at":"2017-10-25T11:21:41Z","git_url":"git://github.com/nanobox-io/nanobox.git","ssh_url":"git@github.com:nanobox-io/nanobox.git","clone_url":"https://github.com/nanobox-io/nanobox.git","svn_url":"https://github.com/nanobox-io/nanobox","homepage":"https://nanobox.io","size":29087,"stargazers_count":1062,"watchers_count":1062,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"archived":false,"open_issues_count":38,"forks":41,"open_issues":38,"watchers":1062,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607"},"html":{"href":"https://github.com/nanobox-io/nanobox/pull/607"},"issue":{"href":"https://api.github.com/repos/nanobox-io/nanobox/issues/607"},"comments":{"href":"https://api.github.com/repos/nanobox-io/nanobox/issues/607/comments"},"review_comments":{"href":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607/comments"},"review_comment":{"href":"https://api.github.com/repos/nanobox-io/nanobox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nanobox-io/nanobox/pulls/607/commits"},"statuses":{"href":"https://api.github.com/repos/nanobox-io/nanobox/statuses/d72556574b046b3bb5f68a49f295596058557658"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"glinton"}}