Skip to content
Snippets Groups Projects
Commit 6b3b3988 authored by Daniel Lee Harple's avatar Daniel Lee Harple Committed by Xu Cheng
Browse files

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: default avatarXu Cheng <xucheng@me.com>
parent d3d1b6f0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment