Skip to content

chore: /lfg PR body must use closing keywords to auto-close issues - #16

Merged
mhenrixon merged 1 commit into
mainfrom
chore/lfg-closing-keywords
Jul 11, 2026
Merged

chore: /lfg PR body must use closing keywords to auto-close issues#16
mhenrixon merged 1 commit into
mainfrom
chore/lfg-closing-keywords

Conversation

@mhenrixon

Copy link
Copy Markdown
Collaborator

Summary

The /lfg Phase 7 template told the workflow to write Refs #N in commit
messages. Refs links an issue but never closes it — so #9#13 all
stayed open after their PRs (#14, #15) merged, and had to be closed by hand.

What changed

.claude/commands/lfg.md:

  • The PR body must carry a GitHub closing keyword (Closes #N / Fixes #N /
    Resolves #N) for every resolved issue, in the Summary — the reliable place,
    because a keyword living only in a commit body can be dropped on squash-merge.
  • Documented the multi-issue form (repeat the keyword: Closes #9, closes #10
    Closes #9, #10 only closes Feature: a checkbox-group builder verb for array-valued associations #9).
  • Added a gh issue close fallback for when a PR merges without the keyword, and
    allowlisted gh issue close in the frontmatter so the fallback doesn't prompt.
  • Added a checklist item.

Test plan

Docs/instruction-only change — no code. Verified the keyword rules against
GitHub's linked-PR behavior (only Close/Fix/Resolve keywords auto-close; one
keyword per issue number).

The Phase 7 template wrote `Refs #N` in commits, which links but never
auto-closes an issue on merge. Five issues (#9-#13) stayed open after their PRs
merged and had to be closed by hand.

Require a GitHub closing keyword (Closes/Fixes/Resolves #N, one per issue) in the
PR BODY — the reliable place, since a keyword in a squashed commit can be lost.
Document the multi-issue form (repeat the keyword) and a gh issue close fallback,
and allowlist `gh issue close` for that fallback.
@mhenrixon mhenrixon self-assigned this Jul 11, 2026
@mhenrixon mhenrixon added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 11, 2026
@mhenrixon
mhenrixon merged commit 5c5f153 into main Jul 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: a checkbox-group builder verb for array-valued associations

1 participant