mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #16812 from cho-m/formula_auditor-also-check-tag
formula_auditor: also use `tag` when checking GitHub license
This commit is contained in:
commit
cf7c093b30
@ -242,6 +242,7 @@ module Homebrew
|
||||
return if user.blank?
|
||||
|
||||
tag = SharedAudits.github_tag_from_url(formula.stable.url)
|
||||
tag ||= formula.stable.specs[:tag]
|
||||
github_license = GitHub.get_repo_license(user, repo, ref: tag)
|
||||
return unless github_license
|
||||
return if (licenses + ["NOASSERTION"]).include?(github_license)
|
||||
|
Loading…
x
Reference in New Issue
Block a user