git_create_pr
Create a GitHub Pull Request from the current branch targeting a specified base branch, with defaults and safety checks to prevent accidental PRs.
Instructions
Create a GitHub Pull Request from the current branch.
Requires GitHub CLI (gh) to be installed and authenticated. Refuses to create PRs where head == base (same branch) or when the current branch is main/master (to prevent accidental PRs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | PR description markdown. Defaults to a generated summary. | |
| title | No | PR title. Defaults to current branch name if empty. | |
| base_branch | No | Target branch to merge into (default: main). | main |
| working_dir | No | Repository path. Defaults to cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||