Skip to content

Commit

Permalink
fix: fix queries
Browse files Browse the repository at this point in the history
  • Loading branch information
rdash99 committed Oct 10, 2024
1 parent 07dbf0b commit f290874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/project-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ jobs:
const issues = [];
while (hasNextPage) {
const response = await github.graphql(PRQuery, { cursor }, { repositories[i] });
const response = await github.graphql(PRQuery, { cursor, repo: repositories[i] });
issues.push(...response.organization.repository.pullRequests.PRs.map(pr => pr.node.id));
hasNextPage = response.organization.repository.pullRequests.pageInfo.hasNextPage;
cursor = response.organization.repository.pullRequests.pageInfo.endCursor;
}
for (let i = 0; i < issues.length; i++) {
await github.graphql(addToBoard, { boardID }, { issues[i] });
for (let j = 0; j < issues.length; j++) {
await github.graphql(addToBoard, { boardID, PRID: issues[j] });
}
}

0 comments on commit f290874

Please sign in to comment.