Bot PR-authoring: emit a Closes #NN keyword when a PR resolves an issue #372
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#372
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When a bot PR resolves a tracked issue, the PR-authoring step names the issue in the PR title (e.g.
review: ... (#369)) but doesn't put a closing keyword in the body. Forgejo only auto-closes on aCloses #NN/Fixes #NNkeyword (immediately before the ref), so the merge leaves the issue orphaned — open despite being fixed — and a human has to notice and close it by hand.Evidence
#369as a plain link → #369 stayed open, closed manually after the fact.Closes #367→ #367 auto-closed. Same author, same tick, opposite outcome — purely the keyword.Fix
Where the harness composes a bot PR body for issue-resolving work, emit a properly-formatted
Closes #NNline (keyword directly before the ref) for the issue the PR resolves. The linkage is already known — it's the number put in the title today — so this is wiring an existing value into the body in the right format, not inferring anything new.Scope note: only add the keyword when the PR genuinely resolves the issue (a PR that merely references related work should stay a plain link). The issue-work path already knows which issue it's building, so key off that, not a title regex.
Acceptance
Closes #NNkeyword that auto-closes it on merge.Backlog — not urgent. Relates to the manual close of #369.