create_merge_request
Create a new merge request in a GitLab project by specifying source and target branches, title, description, assignees, reviewers, and labels to propose code changes for review.
Instructions
Create a new merge request in a GitLab project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| title | Yes | Merge request title | |
| description | No | Merge request description | |
| source_branch | Yes | Branch containing changes | |
| target_branch | Yes | Branch to merge into | |
| assignee_ids | No | The ID of the users to assign the MR to | |
| reviewer_ids | No | The ID of the users to assign as reviewers of the MR | |
| labels | No | Labels for the MR | |
| draft | No | Create as draft merge request | |
| allow_collaboration | No | Allow commits from upstream members |
Input Schema (JSON Schema)
{
"properties": {
"allow_collaboration": {
"description": "Allow commits from upstream members",
"type": "boolean"
},
"assignee_ids": {
"description": "The ID of the users to assign the MR to",
"items": {
"type": "number"
},
"type": "array"
},
"description": {
"description": "Merge request description",
"type": "string"
},
"draft": {
"description": "Create as draft merge request",
"type": "boolean"
},
"labels": {
"description": "Labels for the MR",
"items": {
"type": "string"
},
"type": "array"
},
"project_id": {
"description": "Project ID or complete URL-encoded path to project",
"type": "string"
},
"reviewer_ids": {
"description": "The ID of the users to assign as reviewers of the MR",
"items": {
"type": "number"
},
"type": "array"
},
"source_branch": {
"description": "Branch containing changes",
"type": "string"
},
"target_branch": {
"description": "Branch to merge into",
"type": "string"
},
"title": {
"description": "Merge request title",
"type": "string"
}
},
"required": [
"project_id",
"title",
"source_branch",
"target_branch"
],
"type": "object"
}