update_merge_request
Modify an existing GitLab merge request by updating its title, description, target branch, assignees, labels, or state. Use this tool to change merge request properties, reassign reviewers, adjust merge settings, or close/reopen requests as needed.
Instructions
Update an existing merge request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allow_collaboration | No | Allow commits from members who can merge | |
assignee_id | No | Assign a user to the merge request (use 0 to unassign) | |
assignee_ids | No | Assign multiple users to the merge request | |
description | No | Update merge request description (max 1,048,576 characters) | |
labels | No | Update labels (comma-separated) | |
merge_request_iid | Yes | Merge request internal ID | |
merge_when_pipeline_succeeds | No | Set MR to merge when pipeline succeeds | |
milestone_id | No | Assign a milestone (use 0 to remove) | |
project_id | Yes | Project ID or path | |
remove_source_branch | No | Flag to remove source branch after merging | |
reviewer_ids | No | Set reviewers for the merge request | |
squash | No | Toggle squash commits on merge | |
state_event | No | Change the state (close or reopen the MR) | |
target_branch | No | Change the target branch | |
title | No | Update merge request title |
Input Schema (JSON Schema)
{
"properties": {
"allow_collaboration": {
"description": "Allow commits from members who can merge",
"type": "boolean"
},
"assignee_id": {
"description": "Assign a user to the merge request (use 0 to unassign)",
"type": "number"
},
"assignee_ids": {
"description": "Assign multiple users to the merge request",
"items": {
"type": "number"
},
"type": "array"
},
"description": {
"description": "Update merge request description (max 1,048,576 characters)",
"type": "string"
},
"labels": {
"description": "Update labels (comma-separated)",
"type": "string"
},
"merge_request_iid": {
"description": "Merge request internal ID",
"type": "number"
},
"merge_when_pipeline_succeeds": {
"description": "Set MR to merge when pipeline succeeds",
"type": "boolean"
},
"milestone_id": {
"description": "Assign a milestone (use 0 to remove)",
"type": "number"
},
"project_id": {
"description": "Project ID or path",
"type": "string"
},
"remove_source_branch": {
"description": "Flag to remove source branch after merging",
"type": "boolean"
},
"reviewer_ids": {
"description": "Set reviewers for the merge request",
"items": {
"type": "number"
},
"type": "array"
},
"squash": {
"description": "Toggle squash commits on merge",
"type": "boolean"
},
"state_event": {
"description": "Change the state (close or reopen the MR)",
"enum": [
"close",
"reopen"
],
"type": "string"
},
"target_branch": {
"description": "Change the target branch",
"type": "string"
},
"title": {
"description": "Update merge request title",
"type": "string"
}
},
"required": [
"project_id",
"merge_request_iid"
],
"type": "object"
}