Github Update Pr
github_update_prUpdate selected pull request fields—title, body, base branch, state, or labels—without restating unspecified values; label changes may require a second call.
Instructions
Updates an existing pull request. Only the fields supplied are sent, the rest keep their current values, so a title can change without restating the body. Labels take a second call, since the pull request payload carries none. That call answers with the issue, which has no head, base or reviewers, so a labels-only update reads the pull request back.
Workflow and conventions: github_get_skill('pr-management').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch to retarget the pull request onto | |
| body | No | Replacement body in Markdown. Omit to leave the current body alone | |
| state | No | Omit to leave the state alone | |
| title | No | Replacement title. Omit to leave the current title alone | |
| labels | No | Replacement label set. Omit to keep the current labels, pass [] to strip them all. The 'mcp' tracking label is not re-added here | |
| pr_number | Yes | ||
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| title | Yes | ||
| author | Yes | ||
| merged | Yes | ||
| commits | Yes | ||
| base_ref | Yes | ||
| head_ref | Yes | ||
| head_sha | Yes | ||
| is_draft | Yes | ||
| additions | Yes | ||
| deletions | Yes | ||
| mergeable | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| description | Yes | ||
| changed_files | Yes | ||
| mergeable_state | Yes | ||
| requested_teams | Yes | ||
| requested_reviewers | Yes |