update_pull_request_branch
Synchronize a pull request branch with the latest changes from its base branch to resolve conflicts and maintain up-to-date code.
Instructions
Update a pull request branch with the latest changes from the base branch
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expected_head_sha | No | The expected SHA of the pull request's HEAD ref | |
owner | Yes | Repository owner (username or organization) | |
pull_number | Yes | Pull request number | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"expected_head_sha": {
"description": "The expected SHA of the pull request's HEAD ref",
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"pull_number": {
"description": "Pull request number",
"type": "number"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"pull_number"
],
"type": "object"
}