Skip to main content
Glama

GitHub MCP Server

update_pull_request_branch

Update a pull request branch with the latest changes from the base branch to ensure it reflects current code, reducing merge conflicts and improving review efficiency.

Instructions

Update a pull request branch with the latest changes from the base branch

Input Schema

NameRequiredDescriptionDefault
expected_head_shaNoThe expected SHA of the pull request's HEAD ref
ownerYesRepository owner (username or organization)
pull_numberYesPull request number
repoYesRepository 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuanle96/mcp-github'

If you have feedback or need assistance with the MCP directory API, please join our Discord server