set_auto_merge
Enable automatic merge for a merge request once the pipeline passes, with options for commit messages, squashing, and source branch removal.
Instructions
Set a merge request to merge when pipeline succeeds (auto-merge)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID or URL-encoded path | |
| merge_request_iid | No | MR internal ID | |
| merge_commit_message | No | Custom merge commit message | |
| squash_commit_message | No | Custom squash commit message | |
| squash | No | Squash commits into single commit | |
| should_remove_source_branch | No | Remove source branch after merge | |
| sha | No | HEAD SHA to ensure source branch hasn't changed |