Merge pull request #20263 from MTCoster/pr-count-ip-allow-list
Ignore IP allow list errors in `too_many_open_prs`
This commit is contained in:
commit
46ba380c0a
@ -968,8 +968,12 @@ module GitHub
|
|||||||
pull_requests.fetch("pageInfo")
|
pull_requests.fetch("pageInfo")
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
# Ignore SAML access errors (https://github.com/Homebrew/brew/issues/18610)
|
# Ignore SAML access errors (https://github.com/Homebrew/brew/issues/18610) and related
|
||||||
raise unless e.message.include?("Resource protected by organization SAML enforcement")
|
# IP allow list errors (https://github.com/orgs/Homebrew/discussions/6263)
|
||||||
|
return false if e.message.include?("Resource protected by organization SAML enforcement") ||
|
||||||
|
e.message.include?("your IP address is not permitted to access this resource")
|
||||||
|
|
||||||
|
raise
|
||||||
end
|
end
|
||||||
|
|
||||||
false
|
false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user