Create pull request
create_pull_requestOpen a pull request from a head branch into a base branch for a Forgejo or Gitea repository, including cross-repo forks via owner:branch head references.
Instructions
Open a pull request from head into base. For cross-repo forks use head as owner:branch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"title": "<title>",
"head": "<head>",
"base": "<base>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| body | No | ||
| head | Yes | ||
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization) | |
| title | Yes | ||
| labels | No | ||
| assignees | No | ||
| milestone | No |