From b3bf91acec0ec9ed66ae653c1763b41d02beaee5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 28 Mar 2024 12:30:01 +0000 Subject: [PATCH] utils/github: fix tap logic. Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> --- Library/Homebrew/utils/github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index d3a80cbbf3..17f6ec40b0 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -869,7 +869,7 @@ module GitHub sig { params(tap: T.nilable(Tap)).returns(T::Boolean) } def self.too_many_open_prs?(tap) # We don't enforce unofficial taps. - return false if tap.nil? && !tap.official? + return false if tap.nil? || !tap.official? # BrewTestBot can open as many PRs as it wants. return false if ENV["HOMEBREW_TEST_BOT_AUTOBUMP"].present?