Github Create Pr
github_create_prCreates a GitHub pull request and applies labels automatically, with options for draft status and custom labels to streamline PR management.
Instructions
Creates a new pull request. Labels are applied in a second call, since the create endpoint takes none, and they come back under labels so a set the token could not write is visible.
Workflow and conventions: github_get_skill('pr-management').
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": {
"repo_owner": "<repo_owner>",
"repo_name": "<repo_name>",
"title": "<title>",
"body": "<body>",
"head": "<head>",
"base": "<base>"
},
"name": "github_create_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| body | Yes | ||
| head | Yes | ||
| draft | No | ||
| title | Yes | ||
| labels | No | Labels to apply, with the 'mcp' tracking label appended unless mcp_label is False. Omit to leave the pull request unlabelled | |
| mcp_label | No | Append the 'mcp' tracking label to labels. Pass False to opt out | |
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||