Rebase Merge Request
gitlab_rebase_merge_requestRebase a merge request’s source branch onto its target branch, optionally waiting for completion and returning the updated SHA, head-change status, and merge errors.
Instructions
Rebase a merge request's source branch onto its target (GitLab force-pushes the source branch). With wait=true (default) it polls up to timeout_seconds (default 60, max 300) and reports previous_sha, sha, head_changed, and merge_error. Use gitlab_get_merge_request_conflicts for conflicts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"merge_request_iid": "<merge_request_iid>"
},
"name": "gitlab_rebase_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| skip_ci | No | ||
| project_id | No | ||
| timeout_seconds | No | ||
| merge_request_iid | Yes |