finish: closes linked issues with a bare Closes #N and no closing comment #497
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#497
Loading…
Add table
Add a link
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?
What happens
madt_finishnever closes an issue itself. It writesCloses #Ninto the commit message and the PR body (internal/service/workflow/helpers.go:35and:55,finish_commit.go:205,finish_remote.go:104). The forge then closes the issue on merge. The issue gets a "closed in PR" event, with no comment and no reason.Manual close does require a reason.
madt_issues action=closepostsreason=as a closing comment. It warns on a bare close, or refuses it underclose_requires_reason=require(internal/mcp/tools_issues_crud.go:279,:419,:488).finishskips that rule completely. No decision record explains the difference, anddocs/architecture/finish-workflow.mdonly describes the close list going into the PR body.It also collides with the ADR check. A decided record's linked issue must carry a comment that names the record. An issue closed by
finishhas no comment, so it fails unless the forge returns the commit reference as a comment. I have not tested that yet.Ask
finishcloses each issue in its close set itself, with a closing comment. The comment carries the PR link, the merge commit, and thefinishsummary.close_requires_reasonthe same way manual close does.docs/architecture/finish-workflow.md.Acceptance
finishcloses has a closing comment with the PR link and the merge commit.close_requires_reason=requireapplies tofinishcloses.adr check.