Skip to content

Commit b4bed15

Browse files
retry on secondary rate limit errors
1 parent db4c1b0 commit b4bed15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/get_contributors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ module.exports = async function (filepath) {
1717
return false
1818
},
1919
onSecondaryRateLimit: (retryAfter, options, octokit) => {
20-
// does not retry, only logs a warning
21-
octokit.log.warn(`SecondaryRateLimit hit for request ${options.method} ${options.url}`)
20+
octokit.log.warn(`SecondaryRateLimit hit for request ${options.method} ${options.url}, retrying after ${retryAfter} seconds`)
21+
return true
2222
},
2323
},
2424
})

0 commit comments

Comments
 (0)