From 54aa3c74503477adde4d2f58b4bb2d24f76ab214 Mon Sep 17 00:00:00 2001 From: Caleb Norton Date: Sun, 1 Mar 2026 21:18:05 -0600 Subject: [PATCH] refactor: allow full URL for closing issue the PR bot does not recognize the full URL of an issue being closed (which is rendered the same as if the user simply put #) --- .github/workflows/pr-standards.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-standards.yml b/.github/workflows/pr-standards.yml index 1edbd5d061d..0d6e6f73096 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\/anomalyco\/opencode\/issues\/\d+)/i.test(issueContent) || /#\d+/.test(issueContent) || /https:\/\/github\.com\/anomalyco\/opencode\/issues\/\d+/.test(issueContent); if (!hasIssueRef) { issues.push('No issue referenced. Please add `Closes #` linking to the relevant issue.'); }