create_pr
Open a pull request from a head branch into a base branch, specifying title, description, and draft status. Returns the pull request details.
Instructions
Open a new pull request from head into base.
Returns the created Gitea PullRequest object (including the assigned
number, URL, and merge status). Raises :class:GiteaAPIError if the
head branch doesn't exist, there are no commits between head and base,
or an open PR already exists for this branch pair.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| head | Yes | Source branch (the branch containing your changes). Same-repo only; cross-fork PRs not supported by this tool. | |
| base | Yes | Target branch (where the PR should merge into, e.g. 'main') | |
| title | Yes | Pull request title | |
| body | No | PR description in Markdown | |
| draft | No | Open as a draft PR (cannot be merged until marked ready) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||