rebase_merge_request
Trigger an asynchronous rebase of a merge request's source branch onto the target branch to maintain linear history for CI pipelines. Use dry run mode for preview.
Instructions
Trigger an asynchronous rebase of the MR's source branch on top of the target branch. Useful when CI requires a linear history before merge. dry_run=true by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| mr_iid | Yes | MR IID to rebase | |
| skip_ci | No | If true, set ci.skip on the rebase commit (Premium feature, see GitLab docs). | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |