Open a PR for a ticket's branch
open_pull_requestCreate a pull request from a ticket branch with a linked title and closing body. Uses gh CLI or returns a compare URL if unavailable.
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.
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 |