utils/github: fix tap logic.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									fe16b14479
								
							
						
					
					
						commit
						b3bf91acec
					
				@ -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?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user