Skip to content

Commit

Permalink
Merge pull request #7685 from MikeMcQuaid/audit_releases_online
Browse files Browse the repository at this point in the history
dev-cmd/audit: don't check GitHub releases without --online.
  • Loading branch information
MikeMcQuaid authored Jun 4, 2020
2 parents 9ba0045 + 8b24d8c commit 0af7a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def audit_specs
.second

begin
if (release = GitHub.open_api("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{tag}"))
if @online && (@release = GitHub.open_api("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{tag}"))
problem "#{tag} is a GitHub prerelease" if release["prerelease"]
problem "#{tag} is a GitHub draft" if release["draft"]
end
Expand Down

0 comments on commit 0af7a28

Please sign in to comment.