update_pull_request_branch
Update a pull request branch with the latest changes from the base branch to resolve merge conflicts and keep code current.
Instructions
Update a pull request branch with the latest changes from the base branch. This is equivalent to pressing the 'Update branch' button on GitHub.
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>",
"pull_number": "<pull_number>"
},
"name": "update_pull_request_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| pull_number | Yes | Pull request number | |
| expected_head_sha | No | The expected SHA of the pull request's HEAD ref (for optimistic locking) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |