From d5c5375a0ad0d7ed73d6c8e58c1730cf8bbaa5fc Mon Sep 17 00:00:00 2001 From: Edouard Gouilliard Date: Sun, 19 Apr 2026 12:06:14 +0100 Subject: [PATCH] fix(workflow): explicitly close issues after PR creation GitHub's Closes #N auto-close only works when PR merges into the DEFAULT branch. Since we PR to hotfix (not main), issues stay open. Now explicitly runs gh issue close for all primary + grouped issues after the PR is created. Co-Authored-By: Claude Opus 4.6 (1M context) --- .archon/workflows/dev-pipeline.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.archon/workflows/dev-pipeline.yaml b/.archon/workflows/dev-pipeline.yaml index f921013..b25c022 100644 --- a/.archon/workflows/dev-pipeline.yaml +++ b/.archon/workflows/dev-pipeline.yaml @@ -903,7 +903,21 @@ nodes: )" ``` - Output the PR URL. + 6. MANDATORY — after creating the PR, explicitly close ALL issues + (primary + grouped). Do NOT rely on GitHub's auto-close from + `Closes #N` — it only works when the PR is merged into the + DEFAULT branch, which may not be hotfix. + For EACH issue number: + ```bash + gh issue close --comment "Resolved in PR #" + ``` + Verify all are closed: + ```bash + gh issue view --json state --jq '.state' + # Should say CLOSED for every issue + ``` + + Output the PR URL and list of closed issues. # ═══════════════════════════════════════════════════════════════ # Step 13: Scan for already-fixed issues