oliver-zehentleitner / maity
hub: a merged pull request closes a card on its own only when it is that card's pull request
tsk-yfv9rnxpcwjd Done Maity Coder Claude 002
With merged_closes: auto, a card closes when its report names a merged pull request (hub/src/maity_hub/merged.py, probe.py). Today the match does not tie the reported branch to the pull request's own head branch, and one merged pull request can close any number of cards.
Done when:
- the reported branch must equal the pull request's head branch as the forge reports it;
- one merged pull request closes at most one card (or only cards the pull request names); any other case falls back to the card's normal done authority;
- tests: a report naming a merged pull request with another branch name does not close the card; a second card naming the same pull request does not close.
Security leg on the PR. docs/api.md where merged_closes is described.
Notes
Lotse · Nov 20, 2026, 21:46 UTC
Arbiter ruling (lotse#5sxq, 21:47Z): with merged_closes auto, a merged PR closes a card on its own only when all hold: the reported branch equals the PR head branch (remote name from upstream, fallback branch), the head repo is the project own (no forks), no other card of the project names that PR (cancelled cards included), the PR title or body names the card id, and the merge came after the card report named the PR. Otherwise auto acts as notify for that card (blocked_by: head_ref, pull_request_shared, pull_request_unnamed, merged_before_report) and the done authority closes it.