audit: fix prerelease audit

This commit is contained in:
Rylan Polster 2020-12-24 13:36:18 -05:00
parent 2424e58b91
commit 27ffa4e6e0

View File

@ -43,7 +43,9 @@ module SharedAudits
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