merge_merge_request
Merge a GitLab merge request by providing project ID and merge request IID. Optionally squash commits, remove source branch, set custom commit messages, or merge when pipeline succeeds.
Instructions
Merge a merge request in a GitLab project
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": "merge_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| squash | No | Squash commits into a single commit when merging | |
| auto_merge | No | If true, the merge request merges when the pipeline succeeds. | |
| project_id | No | Project ID or complete URL-encoded path to project | |
| merge_request_iid | No | The IID of a merge request | |
| merge_commit_message | No | Custom merge commit message | |
| squash_commit_message | No | Custom squash commit message | |
| should_remove_source_branch | No | Remove source branch after merge | |
| merge_when_pipeline_succeeds | No | If true, the merge request merges when the pipeline succeeds.in GitLab 17.11. Use |