merge_pr
Merge a pull request with configurable strategy and commit message. Closes the PR and updates repository history.
Instructions
Merge a pull request.
Calls POST /repos/{owner}/{repo}/pulls/{pull_number}/merge using the
requested merge strategy and optional commit-message overrides. This is
tagged destructiveHint=True because it changes repository history and
closes the pull request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| pull_number | Yes | Pull request number | |
| do | No | Merge strategy: 'merge', 'rebase', 'rebase-merge', or 'squash'. | merge |
| merge_title_field | No | Optional merge commit title. Ignored by strategies that do not create a merge commit. | |
| merge_message_field | No | Optional merge commit message body. Ignored by strategies that do not create a merge commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||