enable_pull_request_automerge
Automatically merge GitHub pull requests when all required checks pass, using specified merge methods like MERGE, SQUASH, or REBASE.
Instructions
Enable auto-merge for a specific pull request. This will automatically merge the PR when all required checks pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Owner of the repository (username or organization) | |
| repo | Yes | Name of the repository | |
| pull_number | Yes | The pull request number | |
| merge_method | No | The merge method to use when auto-merging (MERGE, SQUASH, or REBASE) | |
| token | No | GitHub personal access token (optional) |