fix: too_many_open_prs() fails without SSO access
				
					
				
			This commit is contained in:
		
							parent
							
								
									41be66fc2a
								
							
						
					
					
						commit
						4653d5889e
					
				@ -921,9 +921,11 @@ module GitHub
 | 
			
		||||
      }
 | 
			
		||||
    EOS
 | 
			
		||||
    puts
 | 
			
		||||
    puts "In too_many_open_prs"
 | 
			
		||||
 | 
			
		||||
    homebrew_prs_count = 0
 | 
			
		||||
 | 
			
		||||
    begin
 | 
			
		||||
      API.paginate_graphql(query) do |result|
 | 
			
		||||
        data = result.fetch("viewer")
 | 
			
		||||
        github_user = data.fetch("login")
 | 
			
		||||
@ -941,6 +943,10 @@ module GitHub
 | 
			
		||||
 | 
			
		||||
        pull_requests.fetch("pageInfo")
 | 
			
		||||
      end
 | 
			
		||||
    rescue => e
 | 
			
		||||
      # Ignore SAML access errors (https://github.com/Homebrew/brew/issues/18610)
 | 
			
		||||
      raise unless e.message.casecmp?("SAML")
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    false
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user