diff options
| author | Daniel Lee Harple | 2015-09-30 12:59:00 -0400 | 
|---|---|---|
| committer | Xu Cheng | 2015-10-07 19:48:24 +0800 | 
| commit | 6b3b398858147a53fec5dc850d29ca531ef8fcc1 (patch) | |
| tree | 92bf5e7ff634b49075c75a7832e1580c67612e67 /Library/Homebrew/cmd/audit.rb | |
| parent | d3d1b6f0fe57660d6b3f6cf74e08b75ba5322649 (diff) | |
| download | brew-6b3b398858147a53fec5dc850d29ca531ef8fcc1.tar.bz2 | |
audit: fix GitHub repository audit
In the data returned from the GitHub API, “watchers_count” is actually the
number of stars.
See https://developer.github.com/v3/activity/starring/#starring-vs-watching
Closes Homebrew/homebrew#44477.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 3b27c28f5..95acd9430 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -477,7 +477,7 @@ class FormulaAuditor      end      problem "GitHub fork (not canonical repository)" if metadata["fork"] -    if (metadata["forks_count"] < 10) && (metadata["watchers_count"] < 10) && +    if (metadata["forks_count"] < 10) && (metadata["subscribers_count"] < 10) &&         (metadata["stargazers_count"] < 20)        problem "GitHub repository not notable enough (<10 forks, <10 watchers and <20 stars)"      end  | 
