github_create_pull_request
Create a pull request with file changes in a GitHub repository. Prefer the exact owner from github_list_repositories; 'repo' also accepts the combined 'owner/name' form. Creates a new branch from the base branch, commits the specified files, and opens a PR. Use this instead of github_commit_files when changes should go through code review rather than being committed directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Pull request description in markdown. | |
| repo | Yes | Repository name. Also accepts the combined 'owner/name' form. | |
| draft | No | If true, create as a draft PR. | |
| files | Yes | Files to create or update. Each entry has a 'path' and 'content'. | |
| owner | Yes | Repository owner (e.g. 'octocat'). Prefer the exact owner from a prior github_list_repositories call. May be embedded in 'repo' as 'owner/name'. | |
| title | Yes | Pull request title. | |
| base_branch | No | Target branch to merge into. Defaults to the repository's default branch. | |
| head_branch | Yes | Name for the new branch (e.g. 'feat/add-ci-pipeline'). Must not already exist. | |
| commit_message | Yes | Git commit message for the changes. | |
| confirm_large_deletions | No | Paths from 'files' whose new content is intentionally much shorter than the file it replaces. A commit that would replace an existing file with less than half of its content is refused unless that path is listed here. Leave this out unless a refusal named the path and removing that much is the change you intend. |