Skip to content

Commit

Permalink
Merge pull request #1012 from newrelic/liz/fix-workflow
Browse files Browse the repository at this point in the history
Fix github query syntax
  • Loading branch information
LizBaker authored Jun 13, 2023
2 parents dcd4d72 + e760e0d commit 2d0a329
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/sync-data/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ inputs:
description: 'true/false - determines whether to fetch and sync the project-stats data'
runs:
using: 'node16'
main: 'src/index.js'
main: 'dist/index.js'
8 changes: 1 addition & 7 deletions .github/actions/sync-data/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3680,12 +3680,6 @@ const createOctokit = ({ org, accessToken, tokenType = 'token', cacheKey }) => {
log.warn(
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
);
},
onAbuseLimit: (retryAfter, options) => {
// does not retry, only logs a warning
log.warn(`Abuse detected for request ${options.method} ${options.url}`);
log.json(options);
return true;
}
},
log: {
Expand Down Expand Up @@ -11280,7 +11274,7 @@ async function fetchAllPages(
const query = createQuery(endCursor);
// log.json(query)
// append new results to the collection array
apiResponse = await github.rest.query(query);
apiResponse = await github.query(query);
const { nodes, pageInfo } = resultSelector(apiResponse) || {};

if (!nodes || !pageInfo) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function fetchAllPages(
const query = createQuery(endCursor);
// log.json(query)
// append new results to the collection array
apiResponse = await github.rest.query(query);
apiResponse = await github.query(query);
const { nodes, pageInfo } = resultSelector(apiResponse) || {};

if (!nodes || !pageInfo) {
Expand Down

0 comments on commit 2d0a329

Please sign in to comment.