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.
2 parents 1b169d1 + b7ed582 commit adc1d5cCopy full SHA for adc1d5c
pkg/connector/helpers.go
@@ -230,7 +230,7 @@ func isRatelimited(resp *github.Response) bool {
230
if resp == nil {
231
return false
232
}
233
- if resp.Header.Get("X-Ratelimit-Remaining") == "0" {
+ if resp.StatusCode == http.StatusForbidden && resp.Header.Get("X-Ratelimit-Remaining") == "0" {
234
return true
235
236
return resp.StatusCode == http.StatusTooManyRequests
0 commit comments