Accept merge request
gitlab_accept_merge_requestMerge a GitLab merge request immediately or set auto-merge to trigger once the pipeline succeeds, with options for squash and source branch removal.
Instructions
Accept (merge) a merge request.
Pass merge_when_pipeline_succeeds=True to set auto-merge (merge once
the pipeline succeeds) rather than merging immediately. Optional body
params: merge_commit_message, squash_commit_message, squash,
should_remove_source_branch, sha.
Args: **kwargs: project_id and merge_request_iid (required) plus optional merge parameters listed above.
Returns: Response: A wrapper containing the original response and a MergeRequest model.
Raises: MissingParameterError: If the project_id or merge_request_iid is missing. ParameterError: If invalid parameters are provided.
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_accept_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| name | No | ||
| group_id | No | ||
| user_ids | No | ||
| group_ids | No | ||
| rule_type | No | ||
| project_id | No | ||
| report_type | No | ||
| approval_rule_id | No | ||
| merge_request_iid | No | ||
| approvals_required | No | ||
| protected_branch_ids | No | ||
| applies_to_all_protected_branches | No |