From 8a4760bdffaba49ac6676fa31b7454ac0d9cea6c Mon Sep 17 00:00:00 2001 From: Gustav Eikaas Date: Thu, 21 Dec 2023 09:50:01 +0100 Subject: [PATCH] ci: --- .github/helpers/src/issue-checker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/helpers/src/issue-checker.ts b/.github/helpers/src/issue-checker.ts index 070020eca..e10e74322 100644 --- a/.github/helpers/src/issue-checker.ts +++ b/.github/helpers/src/issue-checker.ts @@ -52,7 +52,7 @@ async function checkIssues(client: Octo, pr: number) { id number title - timelineItems(first: 100, itemTypes: [CONNECTED_EVENT]) { + timelineItems(first: 100) { __typename ... on PullRequestTimelineItemsConnection{ totalCount @@ -81,6 +81,8 @@ async function checkIssues(client: Octo, pr: number) { { owner: context.repo.owner, name: context.repo.repo, pr: pr } ); + console.log(JSON.stringify(pullRequests)); + const linkedIssues: number = (pullRequests as any).repository.pullRequest.timelineItems.totalCount; if (linkedIssues === 0) {