Skip to content

Delivery auto-close-linked - #520

Merged
LeXwDeX merged 7 commits into
devfrom
feat/519-auto-close-linked
Sep 3, 2026
Merged

Delivery auto-close-linked#520
LeXwDeX merged 7 commits into
devfrom
feat/519-auto-close-linked

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Closes #519

Why

GitHub's native issue auto-close only fires when a PR carrying Closes #n merges into the default branch (main). This repo delivers into dev first (two-tier Git Workflow), so delivered issues stayed open — #433/#472/#473/#474/#475/#477/#496 all had to be closed manually on 2026-09-03. This adds the dev-layer mirror of auto-close.

What changed

  • New .github/workflows/dev-issue-autoclose.yml (sole change): trigger pull_request: types: [closed], job gated on merged == true && base.ref == 'dev' (merges to main keep native auto-close — no overlap). Parses the PR body for the official closing keywords + bare #n (case-insensitive, deduped), guards the shared issue/PR number space (skip PRs, skip nonexistent, skip already-CLOSED — no duplicate comments), closes survivors with gh issue close --reason completed plus an explanatory comment naming the delivery PR. Least privilege (contents: read, issues: write, pull-requests: read), no checkout, no third-party actions, PR body passed only via env: (script-injection safe).

Evidence

Checklist

  • Why, What changed, and Evidence are filled in.
  • specgit finish exits 0.

@LeXwDeX
LeXwDeX changed the base branch from main to dev September 3, 2026 03:18
@LeXwDeX
LeXwDeX marked this pull request as ready for review September 3, 2026 03:18
@LeXwDeX
LeXwDeX merged commit d781085 into dev Sep 3, 2026
13 checks passed
@LeXwDeX
LeXwDeX deleted the feat/519-auto-close-linked branch September 3, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: auto-close linked issues when PRs merge into dev

1 participant