brew pr-pull: no bottles for CI-no-bottles PRs

This commit is contained in:
Nanda H Krishna 2021-07-08 13:43:43 +05:30
parent 7d9ac775dd
commit 6bea9b4202
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

View File

@ -291,7 +291,10 @@ module Homebrew
def formulae_need_bottles?(tap, original_commit, user, repo, pr, args:)
return if args.dry_run?
return false if GitHub.pull_request_labels(user, repo, pr).include? "CI-syntax-only"
labels = GitHub.pull_request_labels(user, repo, pr)
return false if labels.include?("CI-syntax-only") || labels.include?("CI-no-bottles")
changed_formulae(tap, original_commit).any? do |f|
!f.bottle_unneeded? && !f.bottle_disabled?