diff --git a/.github/helpers/src/issue-checker.ts b/.github/helpers/src/issue-checker.ts index 070020eca..095b84225 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, itemTypes: [CONNECTED_EVENT, CROSS_REFERENCED_EVENT]) { __typename ... on PullRequestTimelineItemsConnection{ totalCount diff --git a/.github/workflows/pr-issue-check.yml b/.github/workflows/pr-issue-check.yml index 6c94bded7..92adea3f2 100644 --- a/.github/workflows/pr-issue-check.yml +++ b/.github/workflows/pr-issue-check.yml @@ -18,7 +18,7 @@ permissions: statuses: read, } on: - workflow_dispatch: + pull_request: jobs: issue-check: