Repository navigation
Description
Supersedes #1265 and #1297, which each hold half of this. Neither contains the other, so the mechanism is stated once here and both are closed against it.
Three independent ways a closing keyword fails on this repository's two-branch model. Each is silent, and each fails in the safe-looking direction: an issue still open after its fix has shipped reads as ordinary backlog.
1. A feature pull request's Fixes #N is inert
GitHub registers a closing reference only for a pull request targeting the default branch. Every feature pull request here targets develop, so its Fixes #N line never becomes a closing reference at all, despite rendering as a link in the UI.
Measured across the thirteen feature pull requests promoted in #1263:
gh api graphql -f query='{ repository(owner:"ptr727",name:"ProjectTemplate"){
pullRequest(number:1255){ closingIssuesReferences(first:10){ nodes{ number } } } } }'returns an empty set for all thirteen, each of which carried a Fixes #N line.
2. A squash merge drops the pull request body, so the keyword never reaches promotion
This is why the closure does not simply arrive later at promotion, and it is the half a reader of item 1 alone would get wrong.
A squash merge composes its commit message from the pull request title and the list of squashed commit subjects. It does not carry the pull request body. So a keyword written in a feature pull request's body is discarded at the feature merge, well before the promotion that was supposed to act on it. Nothing in the promoted history carries it.
A keyword written in a commit message survives the squash and does fire at promotion. The two placements behave completely differently while looking identical to an author, and no document distinguishes them.
Measured on one release of thirteen feature pull requests: ten carried the keyword in a commit message and closed automatically at promotion. Three carried it only in the pull request body and closed only because the promotion pull request happened to restate every issue by hand.
The consequence of 1 and 2 together is that the promotion pull request must carry a Closes #N line for every issue in the batch, or the promotion merges and closes nothing.
3. A closing keyword fires inside a sentence that negates it
The keyword is matched adjacent to the reference, and no surrounding wording disarms it. Both of these register a closing reference:
Fixes #1261 is deliberately not claimed here.Narrowed with evidence rather than closed: #669
The second was live on #1263 and would have auto-closed #669 on merge, an issue that had just been deliberately narrowed and left open with a comment explaining what remained. It was caught only by querying closingIssuesReferences after opening the pull request, not by reading the body.
The full keyword set is close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved. Prose about an issue reaches for several of these naturally, which is what makes it a trap rather than a rarity.
Why this is filed on the hub rather than downstream
The mechanism affects every fleet repository running the develop -> main promotion model with squashed feature merges. #1297 was filed from ptr727/HomeAutomation-Config, where three issues shipped with their fixes and would have stayed open, tracked downstream as ptr727/HomeAutomation-Config#155.
What a fix would have to address
- State, wherever the promotion recipe lives, that the promotion body owns the closing lines and the feature pull requests cannot.
- State that a closing keyword in a pull request body does not survive a squash merge, and that a keyword in a commit message does. Prefer the commit message, which puts the burden on the feature author, who has the context, and survives without anyone reasoning about promotion.
- State that a closing keyword must never sit adjacent to an issue reference unless the closure is intended, and give the safe rewriting (
, #669,rather thanclosed: #669). - Make the check mechanical rather than a matter of care. Two candidates, which compose:
- After opening a promotion, compare
closingIssuesReferencesagainst the intended list. Reading the body does not work, which is the whole point of all three items above. - Compare the issues referenced by the feature pull requests in a promoted range against the closing keywords present in that range's commit messages, and report the difference. This would fit alongside the existing hub-hosted review tooling.
- After opening a promotion, compare
GOVERNANCE.md "Branching Model" and WORKFLOW.md are the surfaces this binds, and the operational-vs-release-workflow skill is where an agent would encounter it at the moment it chooses a target branch or opens a promotion. Neither half is written down in GOVERNANCE.md, AGENTS.md, drive-pr, merge-and-release, or comment-and-doc-style today.
Activity
ptr727 commentedon Nov 10, 2026
#3788 folded into this issue (open-issue sweep, 2026-11-10).
#3788 is this issue's squash-body failure, and it is closed as a duplicate here. Its distinct details, kept here so the fix covers them:
.agents/skills/backlog-burndown/SKILL.md"Grouping and File Claims", in the "Closing keywords go on the promotion pull request" bullet, says aFixes #Nline in a feature pull request body "closes nothing".branching-and-release-modelsays the same of the feature ->developPR.squash_merge_commit_messageisPR_BODY). A promotion merged with--mergebrings that commit tomain, and GitHub closes #N from it, although no promotion body named it. That undoes the "stated rather than inferred" protection "Assembling the Promotion Body" relies on.Fixes #Nbeside or instead of the inertCloses on promotion:line, with the same result. Mark Direct-Push Closures and Close backlog-burndown Cleanup and Claim Gaps #3792 added the direct-push closure marker but did not settle this.Done when the skills state what a closing keyword does under the squash setting. That covers a feature pull request body and a direct-push commit message. The worker rule then follows from that.
ptr727 commentedon Nov 13, 2026
Backlog burndown claim (round 8, group 3, away mode): branch
burndown/commit-title-closing-keywords.Issues: #1154, #1471.
Predicted file set:
GOVERNANCE.md("Pull Request Title and Commit Message Conventions" and "Branching Model").github/copilot-instructions.md.agents/skills/comment-and-doc-style/SKILL.md,.github/skills/comment-and-doc-style/SKILL.md,.claude-plugin/fleet-skills/skills/comment-and-doc-style/SKILL.md,.claude-plugin/fleet-skills/.source-digests/comment-and-doc-style.agents/skills/branching-and-release-model/SKILL.md,.github/skills/branching-and-release-model/SKILL.md,.claude-plugin/fleet-skills/skills/branching-and-release-model/SKILL.md,.claude-plugin/fleet-skills/.source-digests/branching-and-release-model.agents/skills/backlog-burndown/SKILL.md,.github/skills/backlog-burndown/SKILL.md,.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md,.claude-plugin/fleet-skills/.source-digests/backlog-burndown.agents/skills/drive-pr/SKILL.md,.github/skills/drive-pr/SKILL.md,.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md,.claude-plugin/fleet-skills/.source-digests/drive-pr.agents/skills/merge-and-release/SKILL.md,.github/skills/merge-and-release/SKILL.md,.claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md,.claude-plugin/fleet-skills/.source-digests/merge-and-releaseSay What Closing Keywords Do on Promotion and Where the Title Limit E…