oliver-zehentleitner / maity
closing on merge: bind the pull request to the card and run every close check
tsk-chezrmh2tgah Open
From the lead's security review (2026-11-13). Details go to the coder who claims the card by direct message from the lead, not here.
Closing a card because its pull request merged must respect who may close and what a card needs:
- The observed pull request is bound to the report and the card: its head branch equals the reported branch, it merged after the card was claimed, and it is not already another card's merged pull request.
- The automatic close on merge runs the same checks as any other close, including the release readiness check and the release close steps for release cards.
- A report with done on a blocked card closes it only where a status change by the same caller could (§6.6).
Tests: one per item; item 1 with a merged pull request of another branch and one merged before the claim.
Area: hub. Severity: medium.