Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit e760e0d

Browse files
committed
fix: Revert github query syntax
1 parent 2ae024c commit e760e0d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/actions/sync-data/dist/index.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -3680,12 +3680,6 @@ const createOctokit = ({ org, accessToken, tokenType = 'token', cacheKey }) => {
36803680
log.warn(
36813681
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
36823682
);
3683-
},
3684-
onAbuseLimit: (retryAfter, options) => {
3685-
// does not retry, only logs a warning
3686-
log.warn(`Abuse detected for request ${options.method} ${options.url}`);
3687-
log.json(options);
3688-
return true;
36893683
}
36903684
},
36913685
log: {
@@ -11280,7 +11274,7 @@ async function fetchAllPages(
1128011274
const query = createQuery(endCursor);
1128111275
// log.json(query)
1128211276
// append new results to the collection array
11283-
apiResponse = await github.rest.query(query);
11277+
apiResponse = await github.query(query);
1128411278
const { nodes, pageInfo } = resultSelector(apiResponse) || {};
1128511279

1128611280
if (!nodes || !pageInfo) {

.github/actions/sync-data/src/stats-generator/github/fetch-all-pages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function fetchAllPages(
2424
const query = createQuery(endCursor);
2525
// log.json(query)
2626
// append new results to the collection array
27-
apiResponse = await github.rest.query(query);
27+
apiResponse = await github.query(query);
2828
const { nodes, pageInfo } = resultSelector(apiResponse) || {};
2929

3030
if (!nodes || !pageInfo) {

0 commit comments

Comments
 (0)