GitHub PR Closeout
Close ticket work cleanly by enforcing PR linkage, verification evidence, and closure protocol.
Input
- Ticket number.
- Final branch and PR URL.
- Test outputs and validation notes.
- Constraint: PR must include closure keyword for the ticket.
Output
- PR linked to issue with deterministic close behavior.
- Final issue comment with implementation and test evidence.
- Ticket closed in a traceable and auditable way.
Process
Phase 1: Prepare PR Contract
- Ensure PR body includes
Closes #<ticket>. - Confirm scope matches issue AC/DoD.
- Confirm tests relevant to the ticket passed.
Phase 2: Merge Readiness
- Verify no unresolved review blockers remain.
- Ensure branch is up to date with the target branch. If merge conflicts are detected, rebase the branch and re-run the test suite before proceeding.
- Ensure branch title/body are consistent with issue intent.
- Merge using project policy.
Phase 3: Ticket Closure Evidence
- Post closure comment with PR link and test summary.
- Mark ticket as closed.
- If partial scope was merged, keep issue open and create follow-up issue.
Completeness Checklist
- □ PR contains
Closes #<ticket>. - □ Test evidence is posted in issue or PR.
- □ Ticket is closed only after merge.
Rules
- ALWAYS use explicit issue-closing linkage in PR text.
- ALWAYS leave final evidence comment before/at closure.
- NEVER close issue while PR is still open.
- NEVER hide failed tests in closeout notes.
- NEVER merge a PR with unresolved merge conflicts. If rebase fails, report the conflict to the Manager for resolution.