We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e146182 commit 538b574Copy full SHA for 538b574
1 file changed
scripts/all-green.mjs
@@ -13,7 +13,19 @@ const {
13
RETRIES,
14
} = process.env
15
16
-const octokit = new Octokit({ auth: GITHUB_TOKEN })
+const octokit = new Octokit({
17
+ auth: GITHUB_TOKEN,
18
+ throttle: {
19
+ onRateLimit: () => {
20
+ console.error('GitHub API rate limit reached, failing immediately.')
21
+ return false
22
+ },
23
+ onSecondaryRateLimit: () => {
24
+ console.error('GitHub API secondary rate limit reached, failing immediately.')
25
26
27
28
+})
29
const owner = 'DataDog'
30
const repo = 'dd-trace-js'
31
const ref = context.payload.pull_request?.head.sha || GITHUB_SHA
0 commit comments