update_merge_request
Modify merge request details including title, description, assignees, labels, branch settings, and state. Update project merge requests to reflect changes in requirements or fix issues.
Instructions
Update a merge request (Either mergeRequestIid or branchName must be provided)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| merge_request_iid | No | The IID of a merge request | |
| source_branch | No | Source branch name | |
| title | No | The title of the merge request | |
| description | No | The description of the merge request | |
| target_branch | No | The target branch | |
| assignee_ids | No | The ID of the users to assign the MR to | |
| labels | No | Labels for the MR | |
| state_event | No | New state (close/reopen) for the MR | |
| remove_source_branch | No | Flag indicating if the source branch should be removed | |
| squash | No | Squash commits into a single commit when merging | |
| draft | No | Work in progress merge request |
Input Schema (JSON Schema)
{
"properties": {
"assignee_ids": {
"description": "The ID of the users to assign the MR to",
"items": {
"type": "number"
},
"type": "array"
},
"description": {
"description": "The description of the merge request",
"type": "string"
},
"draft": {
"description": "Work in progress merge request",
"type": "boolean"
},
"labels": {
"description": "Labels for the MR",
"items": {
"type": "string"
},
"type": "array"
},
"merge_request_iid": {
"description": "The IID of a merge request",
"type": "number"
},
"project_id": {
"description": "Project ID or complete URL-encoded path to project",
"type": "string"
},
"remove_source_branch": {
"description": "Flag indicating if the source branch should be removed",
"type": "boolean"
},
"source_branch": {
"description": "Source branch name",
"type": "string"
},
"squash": {
"description": "Squash commits into a single commit when merging",
"type": "boolean"
},
"state_event": {
"description": "New state (close/reopen) for the MR",
"enum": [
"close",
"reopen"
],
"type": "string"
},
"target_branch": {
"description": "The target branch",
"type": "string"
},
"title": {
"description": "The title of the merge request",
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}