Skip to content

Commit 13d8cee

Browse files
authored
Ignore 429 only occurring in CI
1 parent 3bde9a4 commit 13d8cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/ensure-orgs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Typhoeus::Config.cache = Cache.new
2727
# We'd constantly hit any rate limit as each needs to be its own query
2828
def org?(user)
2929
response = Typhoeus.head "https://github.com/orgs/#{user}/people", accept_encoding: 'gzip'
30-
response.success?
30+
response.success? or response.response_code == 429
3131
end
3232

3333
puts 'Checking that all orgs listed are in fact, an org...'

0 commit comments

Comments
 (0)