Set merge request auto merge
gitlab_set_merge_request_auto_mergeArms auto-merge for a merge request so it lands when the pipeline succeeds, tied to an expected head commit; a stale SHA is rejected and nothing is armed.
Instructions
Set auto-merge (merge when the pipeline succeeds) for an expected head commit.
The tool declares owner_approval_required: the SDK refuses a call
without approval_ref with code approval_required before this
method runs. A stale sha (GitLab 409) refuses with head_mismatch
and arms nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitlab_set_merge_request_auto_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | ||
| project_id | No | ||
| approval_ref | No | Owner approval receipt for this operation; required by every owner-approved tool. | |
| merge_request_iid | No |