diff --git a/.github/workflows/pr-standards.yml b/.github/workflows/pr-standards.yml index 1edbd5d061d..53e2a8f5fb3 100644 --- a/.github/workflows/pr-standards.yml +++ b/.github/workflows/pr-standards.yml @@ -229,7 +229,7 @@ jobs: if (!isDocsRefactorOrFeat && hasIssueSection) { const issueMatch = body.match(/### Issue for this PR\s*\n([\s\S]*?)(?=###|$)/); const issueContent = issueMatch ? issueMatch[1].trim() : ''; - const hasIssueRef = /(closes|fixes|resolves)\s+#\d+/i.test(issueContent) || /#\d+/.test(issueContent); + const hasIssueRef = /(closes|fixes|resolves)\s+(#\d+|https:\/\/github\.com\/[^\s]+\/issues\/\d+)/i.test(issueContent) || /#\d+/.test(issueContent) || /https:\/\/github\.com\/[^\s]+\/issues\/\d+/.test(issueContent); if (!hasIssueRef) { issues.push('No issue referenced. Please add `Closes #` linking to the relevant issue.'); }