create_merge_request
Open a merge request from an existing source branch to a target branch in GitLab, setting title, description, labels, reviewers, assignees, and draft status.
Instructions
Create a new merge request. Open a merge request from an existing source branch to a target. Use update_merge_request after it exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Create as draft | |
| title | Yes | Merge request title | |
| labels | No | MR labels | |
| squash | No | Squash commits on merge | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| description | No | Merge request description | |
| assignee_ids | No | Assignee user IDs | |
| reviewer_ids | No | Reviewer user IDs | |
| source_branch | Yes | Source branch | |
| target_branch | Yes | Target branch | |
| target_project_id | No | Target project numeric ID | |
| allow_collaboration | No | Allow eligible upstream members to push to the fork source branch | |
| remove_source_branch | No | Remove source branch on merge |