From f290874216beed8c3b9ac949b5790ea346ce465f Mon Sep 17 00:00:00 2001 From: Rowan Dash Date: Thu, 10 Oct 2024 11:58:08 +0100 Subject: [PATCH] fix: fix queries --- .github/workflows/project-dashboard.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/project-dashboard.yaml b/.github/workflows/project-dashboard.yaml index 19fbfd6b..b23bca24 100644 --- a/.github/workflows/project-dashboard.yaml +++ b/.github/workflows/project-dashboard.yaml @@ -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] }); } } \ No newline at end of file