From 6b3b398858147a53fec5dc850d29ca531ef8fcc1 Mon Sep 17 00:00:00 2001 From: Daniel Lee Harple Date: Wed, 30 Sep 2015 12:59:00 -0400 Subject: [PATCH] audit: fix GitHub repository audit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 3b27c28f58..95acd94309 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