From 9524363e8c06b0e92b95905cdc37c64bf11fffe2 Mon Sep 17 00:00:00 2001 From: Thabo Tswana <35628116+thabotswana@users.noreply.github.com> Date: Fri, 26 Jan 2024 12:16:10 +0200 Subject: [PATCH] Update index.js `onAbuseLimit()` is deprecated. Replacing it with the `onSecondaryRateLimit` handler instead. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`