diff --git a/.github/workflows/pr-file-check.yml b/.github/workflows/pr-file-check.yml index 180ab16a74c3..688c48d865d8 100644 --- a/.github/workflows/pr-file-check.yml +++ b/.github/workflows/pr-file-check.yml @@ -51,7 +51,8 @@ jobs: if (!labels.includes('skip-issue-check')) { const prBody = context.payload.pull_request.body || ''; const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/); - if (!issueLink) { + const issueReference = prBody.match(/#\d+/); + if (!issueLink && !issueReference) { core.setFailed('No associated issue found in the PR description.'); } }