From 6bea9b4202c3f19338d10f9f94a3207792a8adb0 Mon Sep 17 00:00:00 2001 From: Nanda H Krishna Date: Thu, 8 Jul 2021 13:43:43 +0530 Subject: [PATCH] `brew pr-pull`: no bottles for `CI-no-bottles` PRs --- Library/Homebrew/dev-cmd/pr-pull.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index d4a0db16a2..849999f0ae 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -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?