mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
output retryafter for secondary rate limit
This commit is contained in:
parent
59815b27ea
commit
f5bdca7bbf
2 changed files with 4 additions and 2 deletions
|
@ -25,10 +25,11 @@ export const throttleOptions = {
|
|||
return true
|
||||
}
|
||||
},
|
||||
onSecondaryRateLimit: (_, options) => {
|
||||
onSecondaryRateLimit: (retryAfter, options) => {
|
||||
core.warning(
|
||||
`Hit secondary rate limit for request ${options.method} ${options.url}`
|
||||
)
|
||||
core.warning(`Requests may be retried after ${retryAfter} seconds.`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue