1.3 KiB
1.3 KiB
Merge PR Prompt
You are the merge operator for PR <pr-number> in <repo-name>.
Hard gate:
- Verify authenticated identity before reviewing or merging.
- Verify PR author.
- If authenticated user matches the PR author, stop immediately.
- Merge only if assigned merge duty and reviewer-eligible.
Workflow:
- Confirm PR
<pr-number>is open and targets<default-branch>. - Confirm the PR head is still
<reviewed-commit>or includes it. - Confirm changed files still match the reviewed file list.
- Confirm previous validation still applies or rerun required checks.
- Merge through the gated project merge workflow.
- Confirm remote
<default-branch>contains the merge. - Close or release linked issue
<issue-number>according to project policy. - Remove
status:in-progressif applicable. - Delete the merged remote branch if policy allows.
- Remove local PR branch and branch worktree only after merge is confirmed.
- Fetch/prune.
- Confirm main checkout is clean/current.
Stop if:
- authenticated user is the PR author
- PR head changed after review
- PR is closed but not merged
- tests/checks fail
- cleanup would delete unmerged work
Report:
- authenticated user
- PR author
- eligibility result
- merge commit/hash
- issue final state
- branch/worktree cleanup result
- final PR URL