Skip to content

Commit da172f7

Browse files
Updated PR body validation workflow (#1741)
1 parent 9777f3c commit da172f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-body-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
}
4646
4747
// Check for issue links
48-
const issueRegex = /(closes|related to)\s+#\d+/i;
48+
const issueRegex = /\b(?:(?:close[sd]?|fix(?:e[sd])?|resolve[sd]?))\s+(?:#\d+|https:\/\/github\.com\/[^\/\s]+\/[^\/\s]+\/issues\/\d+)/i;
4949
if (!issueRegex.test(prBody)) {
5050
missingItems.push('issue reference');
5151
}

0 commit comments

Comments
 (0)