From 570c981f43e17da7f823dcaa7af1c2b88cc5cf35 Mon Sep 17 00:00:00 2001 From: ExpensiveKoala Date: Sun, 29 Sep 2024 01:23:09 -0700 Subject: [PATCH] Update update-set-implementation-lists.yml --- .github/workflows/update-set-implementation-lists.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-set-implementation-lists.yml b/.github/workflows/update-set-implementation-lists.yml index f83efd817b3..213975d7b17 100644 --- a/.github/workflows/update-set-implementation-lists.yml +++ b/.github/workflows/update-set-implementation-lists.yml @@ -57,7 +57,7 @@ jobs: const issuesToUpdate = []; const issuesToCreate = []; - setsData.forEach(set => { + for (const set of setsData) { let foundIssue = undefined; issues.every(issue => { if(issue && issue.title && issue.title.startsWith(set[1])) { @@ -70,11 +70,11 @@ jobs: let issueComments = undefined; if (foundIssue) { - issueComments = github.paginate(github.rest.issues.listComments, { + issueComments = await github.paginate(github.rest.issues.listComments, { owner: context.repo.owner, repo: context.repo.repo, issue_number: foundIssue.number - }).result(); + }); console.log(`Found ${issueComments.length} comments on issue`); } @@ -134,7 +134,7 @@ jobs: state: unimplemented.length > 0 ? "open" : "closed" }); } - }); + } //console.log("Issues to update: ", issuesToUpdate); //console.log("Issues to create: ", issuesToCreate);