create_pull_request
Create a pull request by specifying title, source branch (head), and target branch (base). Supports cross-fork PRs and optional labels, assignees, or milestones.
Instructions
Create a pull request. title, head (source branch), and base (target branch) are required. For cross-fork PRs use 'owner:branch' in head. labels takes label IDs (numbers) — call list_labels first. Prefix the title with WIP: or [WIP] to prevent accidental merge while work is in progress. Returns the created PR including its number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Target branch name (the branch you want to merge INTO) | |
| body | No | Pull request body/description (supports Markdown) | |
| head | Yes | Source branch name (the branch you want to merge FROM). For forks use 'owner:branch' | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| title | Yes | Pull request title | |
| labels | No | List of label IDs | |
| assignee | No | Assignee username | |
| assignees | No | List of assignee usernames | |
| milestone | No | Milestone ID |