{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/75983250","id":75983250,"diff_hunk":"@@ -0,0 +1,22 @@\n+class LeanCli < Formula\n+  desc \"Command-line tool to develop and manage LeanCloud apps.\"\n+  homepage \"https://github.com/leancloud/lean-cli\"\n+  url \"https://github.com/leancloud/lean-cli/archive/v0.2.0.tar.gz\"\n+  sha256 \"980980c764486aa933255fd64d391560e72bba78af8427253e1b4515ab6b68eb\"\n+  head \"https://github.com/leancloud/lean-cli.git\"\n+\n+  depends_on \"go\" => :build\n+\n+  def install\n+    build_from = build.head? ? \"homebrew-head\" : \"homebrew\"\n+    ENV[\"GOPATH\"] = buildpath\n+    mkdir_p buildpath/\"src/github.com/leancloud/\"\n+    ln_s buildpath, buildpath/\"src/github.com/leancloud/lean-cli\"\n+    system \"go\", \"build\", \"-o\", \"output/lean\", \"-ldflags\", \"-X main.pkgType=#{build_from}\", \"github.com/leancloud/lean-cli/lean\"\n+    bin.install \"output/lean\"\n+  end\n+\n+  test do\n+    system bin/\"lean\", \"--version\"","path":"Formula/lean-cli.rb","position":20,"original_position":20,"commit_id":"ea985a1b7ce80fe094618f1e4c47bf8dd501e280","original_commit_id":"ea985a1b7ce80fe094618f1e4c47bf8dd501e280","user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"body":"Can this test be modified to do something more substantial than e.g. `--version` or `--help`? See `cmake.rb` for an example of an application formula with a good test and `tinyxml2.rb` for an example of a library formula with a good test. Thanks!\r\n\r\nOtherwise, let's at least assert:\r\n```ruby\r\nassert_match version.to_s, shell_output(\"#{bin}/lean --version\")\r\n```","created_at":"2016-08-24T01:50:17Z","updated_at":"2016-08-24T01:50:17Z","html_url":"https://github.com/Homebrew/homebrew-core/pull/4171#discussion_r75983250","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/75983250"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/4171#discussion_r75983250"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171","id":82333598,"html_url":"https://github.com/Homebrew/homebrew-core/pull/4171","diff_url":"https://github.com/Homebrew/homebrew-core/pull/4171.diff","patch_url":"https://github.com/Homebrew/homebrew-core/pull/4171.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/4171","number":4171,"state":"open","locked":false,"title":"lean-cli 0.2.0 (new formula)","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":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/homebrew-core/blob/master/.github/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?\r\n- [x] Have you built your formula locally prior to submission with `brew install <formula>` (where `<formula>` is the name of the formula you're submitting)?\r\n- [x] Does your submission pass `brew audit --new-formula <formula>` (after doing `brew install <formula>`)?\r\n\r\n-----\r\n\r\n","created_at":"2016-08-23T09:43:49Z","updated_at":"2016-08-24T01:50:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e89847375dbeb7055d24ce17ed43a331e43e6b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/4171/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/ea985a1b7ce80fe094618f1e4c47bf8dd501e280","head":{"label":"aisk:master","ref":"master","sha":"ea985a1b7ce80fe094618f1e4c47bf8dd501e280","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":66353790,"name":"homebrew-core","full_name":"aisk/homebrew-core","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/homebrew-core","description":":beers: Core formulae for the Homebrew package manager","fork":true,"url":"https://api.github.com/repos/aisk/homebrew-core","forks_url":"https://api.github.com/repos/aisk/homebrew-core/forks","keys_url":"https://api.github.com/repos/aisk/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aisk/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aisk/homebrew-core/teams","hooks_url":"https://api.github.com/repos/aisk/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/aisk/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/aisk/homebrew-core/events","assignees_url":"https://api.github.com/repos/aisk/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/aisk/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/aisk/homebrew-core/tags","blobs_url":"https://api.github.com/repos/aisk/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aisk/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aisk/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/aisk/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aisk/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/aisk/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/aisk/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/aisk/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/aisk/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/aisk/homebrew-core/subscription","commits_url":"https://api.github.com/repos/aisk/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/aisk/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/aisk/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/aisk/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/aisk/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/aisk/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aisk/homebrew-core/merges","archive_url":"https://api.github.com/repos/aisk/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aisk/homebrew-core/downloads","issues_url":"https://api.github.com/repos/aisk/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/aisk/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/aisk/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/aisk/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aisk/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/aisk/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/aisk/homebrew-core/deployments","created_at":"2016-08-23T09:37:16Z","updated_at":"2016-08-23T09:37:32Z","pushed_at":"2016-08-23T09:37:46Z","git_url":"git://github.com/aisk/homebrew-core.git","ssh_url":"git@github.com:aisk/homebrew-core.git","clone_url":"https://github.com/aisk/homebrew-core.git","svn_url":"https://github.com/aisk/homebrew-core","homepage":"http://brew.sh","size":67660,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Homebrew:master","ref":"master","sha":"bebc896e2d4b9194d17090a7dc68c7b3eae6430c","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":52855516,"name":"homebrew-core","full_name":"Homebrew/homebrew-core","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/homebrew-core","description":":beers: Core formulae for the Homebrew package manager","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew-core","forks_url":"https://api.github.com/repos/Homebrew/homebrew-core/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew-core/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew-core/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew-core/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew-core/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew-core/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew-core/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/homebrew-core/deployments","created_at":"2016-03-01T06:58:36Z","updated_at":"2016-08-23T23:57:54Z","pushed_at":"2016-08-24T01:46:15Z","git_url":"git://github.com/Homebrew/homebrew-core.git","ssh_url":"git@github.com:Homebrew/homebrew-core.git","clone_url":"https://github.com/Homebrew/homebrew-core.git","svn_url":"https://github.com/Homebrew/homebrew-core","homepage":"http://brew.sh","size":107215,"stargazers_count":692,"watchers_count":692,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1219,"mirror_url":null,"open_issues_count":136,"forks":1219,"open_issues":136,"watchers":692,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/4171"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/4171"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/4171/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/4171/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/ea985a1b7ce80fe094618f1e4c47bf8dd501e280"}}}}
{"actor":{"display_login":"DomT4"}}