diff --git a/index.js b/index.js index edf12bf..ff21007 100644 --- a/index.js +++ b/index.js @@ -91,7 +91,7 @@ program return true; } }, - onAbuseLimit: (retryAfter, options) => { + onSecondaryRateLimit: (retryAfter, options, octokit) => { // does not retry, only logs a warning console.warn( `Abuse detected for request ${options.method} ${options.url}`