Skip to content

Commit

Permalink
ci:
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Dec 21, 2023
1 parent 5a2beea commit 8a4760b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/helpers/src/issue-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8a4760b

Please sign in to comment.