Skip to content

Commit ecea3a0

Browse files
committed
keep 429 check
1 parent cda55ed commit ecea3a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/connector/helpers.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,8 @@ func isRatelimited(resp *github.Response) bool {
230230
if resp == nil {
231231
return false
232232
}
233-
return resp.Header.Get("X-Ratelimit-Remaining") == "0"
233+
if resp.Header.Get("X-Ratelimit-Remaining") == "0" {
234+
return true
235+
}
236+
return resp.StatusCode == http.StatusTooManyRequests
234237
}

0 commit comments

Comments
 (0)