---
description: Approve implementation and transition issue to PR-ready state
disable-model-invocation: true
allowed-tools:
  - "Bash(mcp-coder gh-tool set-status *)"
  - mcp__mcp-workspace__check_branch_status
---

# Approve Implementation

Approve the implementation and transition the issue to PR-ready state.

**Instructions:**
1. Run branch-status check using `mcp__mcp-workspace__check_branch_status`.

2. If `branch-status` reports a base branch other than `main`, ask the user to confirm this is intentional before proceeding.

3. Only if the branch-status check passes (exit code 0), run the set-status command and confirm it succeeded:
```bash
mcp-coder gh-tool set-status status-08:ready-pr
```

**Note:** If the branch-status check fails, report the failures to the user and do not set the label. If the set-status command fails, report the error to the user. Do not use `--force` unless explicitly asked.

**Effect:** Changes issue status from `status-07:code-review` to `status-08:ready-pr`.

4. After the label is set, poll for the PR to be created and pass CI. This runs in the background — the background process creates the PR while it polls (up to 600s):
Use `mcp__mcp-workspace__check_branch_status` to poll for the PR and CI status.
