Skip to content

Commit cc59d6e

Browse files
Copiloteleanorjboyd
andcommitted
Fix skip-issue-check to support both URL and #issue formats
Co-authored-by: eleanorjboyd <[email protected]>
1 parent d37d029 commit cc59d6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pr-file-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
if (!labels.includes('skip-issue-check')) {
5252
const prBody = context.payload.pull_request.body || '';
5353
const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
54-
if (!issueLink) {
54+
const issueReference = prBody.match(/#\d+/);
55+
if (!issueLink && !issueReference) {
5556
core.setFailed('No associated issue found in the PR description.');
5657
}
5758
}

0 commit comments

Comments
 (0)