update_merge_request
Update an existing GitLab merge request by changing its title, description, labels, assignees, state, or other fields. Provide project ID and merge request IID or branch name to apply changes.
Instructions
Update a merge request (mergeRequestIid or branchName required). Use this for an existing resource; choose the corresponding create tool for a new resource and a note tool for discussion-only text. It changes remote GitLab state and requires the necessary project or group permission; GitLab returns validation, conflict, permission, or rate-limit errors instead of silently applying an invalid request. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Work in progress merge request | |
| title | No | The title of the merge request | |
| labels | No | Labels for the MR | |
| squash | No | Squash commits into a single commit when merging | |
| 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 | The description of the merge request | |
| state_event | No | New state (close/reopen) for the MR | |
| assignee_ids | No | The ID of the users to assign the MR to | |
| milestone_id | No | Milestone ID to assign. Set to 0 to unassign. Null is treated as omitted. | |
| reviewer_ids | No | The ID of the users to assign as reviewers of the MR | |
| source_branch | No | Source branch name | |
| target_branch | No | The target branch | |
| merge_request_iid | No | The IID of a merge request | |
| remove_source_branch | No | Flag indicating if the source branch should be removed |