We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda55ed commit ecea3a0Copy full SHA for ecea3a0
pkg/connector/helpers.go
@@ -230,5 +230,8 @@ func isRatelimited(resp *github.Response) bool {
230
if resp == nil {
231
return false
232
}
233
- return resp.Header.Get("X-Ratelimit-Remaining") == "0"
+ if resp.Header.Get("X-Ratelimit-Remaining") == "0" {
234
+ return true
235
+ }
236
+ return resp.StatusCode == http.StatusTooManyRequests
237
0 commit comments