Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

audit: fix prerelease audit #10138

Merged
merged 1 commit into from Dec 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Library/Homebrew/utils/shared_audits.rb
Expand Up @@ -43,7 +43,9 @@ def github_release(user, repo, tag, formula: nil, cask: nil)

return "#{tag} is a GitHub pre-release." if release["prerelease"] && [version, "all"].exclude?(exception)

return "#{tag} is not a GitHub pre-release but '#{name}' is in the GitHub prerelease allowlist." if exception
if !release["prerelease"] && exception
return "#{tag} is not a GitHub pre-release but '#{name}' is in the GitHub prerelease allowlist."
end

return "#{tag} is a GitHub draft." if release["draft"]
end
Expand Down