{"action":"created","comment":{"url":"https://api.github.com/repos/leancloud/lean-cli/pulls/comments/72191004","id":72191004,"diff_hunk":"@@ -0,0 +1,48 @@\n+package main\n+\n+import (\n+\t\"encoding/json\"\n+\t\"log\"\n+\n+\t\"github.com/coreos/go-semver/semver\"\n+\t\"github.com/levigross/grequests\"\n+)\n+\n+const checkUpdateURL = \"https://download.leancloud.cn/sdk/lean_cli.json\"","path":"lean/check_update.go","position":11,"original_position":11,"commit_id":"f04872f8fcbe20b68ef7630eede148cebb5b7ffb","original_commit_id":"f04872f8fcbe20b68ef7630eede148cebb5b7ffb","user":{"login":"aisk","id":699636,"avatar_url":"https://avatars.githubusercontent.com/u/699636?v=3","gravatar_id":"","url":"https://api.github.com/users/aisk","html_url":"https://github.com/aisk","followers_url":"https://api.github.com/users/aisk/followers","following_url":"https://api.github.com/users/aisk/following{/other_user}","gists_url":"https://api.github.com/users/aisk/gists{/gist_id}","starred_url":"https://api.github.com/users/aisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisk/subscriptions","organizations_url":"https://api.github.com/users/aisk/orgs","repos_url":"https://api.github.com/users/aisk/repos","events_url":"https://api.github.com/users/aisk/events{/privacy}","received_events_url":"https://api.github.com/users/aisk/received_events","type":"User","site_admin":false},"body":"这个工作量有些大，而且未必有稳定接口提供（比如 homebrew）","created_at":"2016-07-26T05:47:38Z","updated_at":"2016-07-26T05:47:38Z","html_url":"https://github.com/leancloud/lean-cli/pull/30#discussion_r72191004","pull_request_url":"https://api.github.com/repos/leancloud/lean-cli/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/leancloud/lean-cli/pulls/comments/72191004"},"html":{"href":"https://github.com/leancloud/lean-cli/pull/30#discussion_r72191004"},"pull_request":{"href":"https://api.github.com/repos/leancloud/lean-cli/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/leancloud/lean-cli/pulls/30","id":78655297,"html_url":"https://github.com/leancloud/lean-cli/pull/30","diff_url":"https://github.com/leancloud/lean-cli/pull/30.diff","patch_url":"https://github.com/leancloud/lean-cli/pull/30.patch","issue_url":"https://api.github.com/repos/leancloud/lean-cli/issues/30","number":30,"state":"open","locked":false,"title":"feat: check update when command line running","user":{"login":"aisk","id":699636,"avatar_url":"https://avatars.githubusercontent.com/u/699636?v=3","gravatar_id":"","url":"https://api.github.com/users/aisk","html_url":"https://github.com/aisk","followers_url":"https://api.github.com/users/aisk/followers","following_url":"https://api.github.com/users/aisk/following{/other_user}","gists_url":"https://api.github.com/users/aisk/gists{/gist_id}","starred_url":"https://api.github.com/users/aisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisk/subscriptions","organizations_url":"https://api.github.com/users/aisk/orgs","repos_url":"https://api.github.com/users/aisk/repos","events_url":"https://api.github.com/users/aisk/events{/privacy}","received_events_url":"https://api.github.com/users/aisk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-25T10:01:57Z","updated_at":"2016-07-26T05:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e0d946977ad98bb607f984a9bd743109cf468f8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/leancloud/lean-cli/pulls/30/commits","review_comments_url":"https://api.github.com/repos/leancloud/lean-cli/pulls/30/comments","review_comment_url":"https://api.github.com/repos/leancloud/lean-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leancloud/lean-cli/issues/30/comments","statuses_url":"https://api.github.com/repos/leancloud/lean-cli/statuses/f04872f8fcbe20b68ef7630eede148cebb5b7ffb","head":{"label":"aisk:master","ref":"master","sha":"f04872f8fcbe20b68ef7630eede148cebb5b7ffb","user":{"login":"aisk","id":699636,"avatar_url":"https://avatars.githubusercontent.com/u/699636?v=3","gravatar_id":"","url":"https://api.github.com/users/aisk","html_url":"https://github.com/aisk","followers_url":"https://api.github.com/users/aisk/followers","following_url":"https://api.github.com/users/aisk/following{/other_user}","gists_url":"https://api.github.com/users/aisk/gists{/gist_id}","starred_url":"https://api.github.com/users/aisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisk/subscriptions","organizations_url":"https://api.github.com/users/aisk/orgs","repos_url":"https://api.github.com/users/aisk/repos","events_url":"https://api.github.com/users/aisk/events{/privacy}","received_events_url":"https://api.github.com/users/aisk/received_events","type":"User","site_admin":false},"repo":{"id":63238071,"name":"lean-cli","full_name":"aisk/lean-cli","owner":{"login":"aisk","id":699636,"avatar_url":"https://avatars.githubusercontent.com/u/699636?v=3","gravatar_id":"","url":"https://api.github.com/users/aisk","html_url":"https://github.com/aisk","followers_url":"https://api.github.com/users/aisk/followers","following_url":"https://api.github.com/users/aisk/following{/other_user}","gists_url":"https://api.github.com/users/aisk/gists{/gist_id}","starred_url":"https://api.github.com/users/aisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisk/subscriptions","organizations_url":"https://api.github.com/users/aisk/orgs","repos_url":"https://api.github.com/users/aisk/repos","events_url":"https://api.github.com/users/aisk/events{/privacy}","received_events_url":"https://api.github.com/users/aisk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aisk/lean-cli","description":"LeanEngine Command Line Tool","fork":true,"url":"https://api.github.com/repos/aisk/lean-cli","forks_url":"https://api.github.com/repos/aisk/lean-cli/forks","keys_url":"https://api.github.com/repos/aisk/lean-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aisk/lean-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aisk/lean-cli/teams","hooks_url":"https://api.github.com/repos/aisk/lean-cli/hooks","issue_events_url":"https://api.github.com/repos/aisk/lean-cli/issues/events{/number}","events_url":"https://api.github.com/repos/aisk/lean-cli/events","assignees_url":"https://api.github.com/repos/aisk/lean-cli/assignees{/user}","branches_url":"https://api.github.com/repos/aisk/lean-cli/branches{/branch}","tags_url":"https://api.github.com/repos/aisk/lean-cli/tags","blobs_url":"https://api.github.com/repos/aisk/lean-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aisk/lean-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aisk/lean-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/aisk/lean-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aisk/lean-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/aisk/lean-cli/languages","stargazers_url":"https://api.github.com/repos/aisk/lean-cli/stargazers","contributors_url":"https://api.github.com/repos/aisk/lean-cli/contributors","subscribers_url":"https://api.github.com/repos/aisk/lean-cli/subscribers","subscription_url":"https://api.github.com/repos/aisk/lean-cli/subscription","commits_url":"https://api.github.com/repos/aisk/lean-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/aisk/lean-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/aisk/lean-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/aisk/lean-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/aisk/lean-cli/contents/{+path}","compare_url":"https://api.github.com/repos/aisk/lean-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aisk/lean-cli/merges","archive_url":"https://api.github.com/repos/aisk/lean-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aisk/lean-cli/downloads","issues_url":"https://api.github.com/repos/aisk/lean-cli/issues{/number}","pulls_url":"https://api.github.com/repos/aisk/lean-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/aisk/lean-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/aisk/lean-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aisk/lean-cli/labels{/name}","releases_url":"https://api.github.com/repos/aisk/lean-cli/releases{/id}","deployments_url":"https://api.github.com/repos/aisk/lean-cli/deployments","created_at":"2016-07-13T10:43:48Z","updated_at":"2016-07-13T10:44:15Z","pushed_at":"2016-07-25T10:01:34Z","git_url":"git://github.com/aisk/lean-cli.git","ssh_url":"git@github.com:aisk/lean-cli.git","clone_url":"https://github.com/aisk/lean-cli.git","svn_url":"https://github.com/aisk/lean-cli","homepage":null,"size":1380,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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"}},"base":{"label":"leancloud:master","ref":"master","sha":"cae84a8640e034e27460a2cce4531cf826a3a96c","user":{"login":"leancloud","id":6660518,"avatar_url":"https://avatars.githubusercontent.com/u/6660518?v=3","gravatar_id":"","url":"https://api.github.com/users/leancloud","html_url":"https://github.com/leancloud","followers_url":"https://api.github.com/users/leancloud/followers","following_url":"https://api.github.com/users/leancloud/following{/other_user}","gists_url":"https://api.github.com/users/leancloud/gists{/gist_id}","starred_url":"https://api.github.com/users/leancloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leancloud/subscriptions","organizations_url":"https://api.github.com/users/leancloud/orgs","repos_url":"https://api.github.com/users/leancloud/repos","events_url":"https://api.github.com/users/leancloud/events{/privacy}","received_events_url":"https://api.github.com/users/leancloud/received_events","type":"Organization","site_admin":false},"repo":{"id":37915376,"name":"lean-cli","full_name":"leancloud/lean-cli","owner":{"login":"leancloud","id":6660518,"avatar_url":"https://avatars.githubusercontent.com/u/6660518?v=3","gravatar_id":"","url":"https://api.github.com/users/leancloud","html_url":"https://github.com/leancloud","followers_url":"https://api.github.com/users/leancloud/followers","following_url":"https://api.github.com/users/leancloud/following{/other_user}","gists_url":"https://api.github.com/users/leancloud/gists{/gist_id}","starred_url":"https://api.github.com/users/leancloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leancloud/subscriptions","organizations_url":"https://api.github.com/users/leancloud/orgs","repos_url":"https://api.github.com/users/leancloud/repos","events_url":"https://api.github.com/users/leancloud/events{/privacy}","received_events_url":"https://api.github.com/users/leancloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leancloud/lean-cli","description":"LeanEngine Command Line Tool","fork":false,"url":"https://api.github.com/repos/leancloud/lean-cli","forks_url":"https://api.github.com/repos/leancloud/lean-cli/forks","keys_url":"https://api.github.com/repos/leancloud/lean-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leancloud/lean-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leancloud/lean-cli/teams","hooks_url":"https://api.github.com/repos/leancloud/lean-cli/hooks","issue_events_url":"https://api.github.com/repos/leancloud/lean-cli/issues/events{/number}","events_url":"https://api.github.com/repos/leancloud/lean-cli/events","assignees_url":"https://api.github.com/repos/leancloud/lean-cli/assignees{/user}","branches_url":"https://api.github.com/repos/leancloud/lean-cli/branches{/branch}","tags_url":"https://api.github.com/repos/leancloud/lean-cli/tags","blobs_url":"https://api.github.com/repos/leancloud/lean-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leancloud/lean-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leancloud/lean-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/leancloud/lean-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leancloud/lean-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/leancloud/lean-cli/languages","stargazers_url":"https://api.github.com/repos/leancloud/lean-cli/stargazers","contributors_url":"https://api.github.com/repos/leancloud/lean-cli/contributors","subscribers_url":"https://api.github.com/repos/leancloud/lean-cli/subscribers","subscription_url":"https://api.github.com/repos/leancloud/lean-cli/subscription","commits_url":"https://api.github.com/repos/leancloud/lean-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/leancloud/lean-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/leancloud/lean-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/leancloud/lean-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/leancloud/lean-cli/contents/{+path}","compare_url":"https://api.github.com/repos/leancloud/lean-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leancloud/lean-cli/merges","archive_url":"https://api.github.com/repos/leancloud/lean-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leancloud/lean-cli/downloads","issues_url":"https://api.github.com/repos/leancloud/lean-cli/issues{/number}","pulls_url":"https://api.github.com/repos/leancloud/lean-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/leancloud/lean-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/leancloud/lean-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leancloud/lean-cli/labels{/name}","releases_url":"https://api.github.com/repos/leancloud/lean-cli/releases{/id}","deployments_url":"https://api.github.com/repos/leancloud/lean-cli/deployments","created_at":"2015-06-23T11:39:48Z","updated_at":"2016-07-13T05:01:57Z","pushed_at":"2016-07-25T10:01:57Z","git_url":"git://github.com/leancloud/lean-cli.git","ssh_url":"git@github.com:leancloud/lean-cli.git","clone_url":"https://github.com/leancloud/lean-cli.git","svn_url":"https://github.com/leancloud/lean-cli","homepage":null,"size":1728,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leancloud/lean-cli/pulls/30"},"html":{"href":"https://github.com/leancloud/lean-cli/pull/30"},"issue":{"href":"https://api.github.com/repos/leancloud/lean-cli/issues/30"},"comments":{"href":"https://api.github.com/repos/leancloud/lean-cli/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/leancloud/lean-cli/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/leancloud/lean-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leancloud/lean-cli/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/leancloud/lean-cli/statuses/f04872f8fcbe20b68ef7630eede148cebb5b7ffb"}}}}
{"actor":{"display_login":"aisk"}}