Open a PR for a ticket's branch
open_pull_requestTurn a ticket's pushed branch into a pull request with a ticket-linked title and closing body, completing the worktree-to-review loop.
Instructions
Turn a ticket's pushed ticket/ branch into a pull request with a ticket-linked title and a closing-keyword body (Closes ) — the last step of the worktree→review loop after create_worktree + commit_feature. Uses the gh CLI when installed; otherwise returns a pre-filled compare URL to open manually. If the branch isn't on origin yet it is pushed first only when the resolved git mode is commit-push. Never throws for environmental gaps (no remote, no gh, unpushed branch) — returns opened:false with a reason.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"ticket": "<ticket>"
},
"name": "open_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch for the PR (default: the repo's default branch). | |
| draft | No | Open as a draft PR. | |
| ticket | Yes | ||
| project | Yes |