gitlab_update_merge_request
Modify merge request details like title, description, target branch, assignees, reviewers, labels, and more. Supports state changes (close/reopen) and draft status updates to streamline code collaboration.
Instructions
Update any modifiable field of a merge request: title, description, target branch, assignees, reviewers, labels, milestone, or state. Supports closing/reopening and draft status.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allow_collaboration | No | Allow commits from upstream members (boolean). Lets maintainers push to fork's branch. Default: true | |
assignee_id | No | User ID to assign (integer). Use user's numeric GitLab ID, not username. Single assignee only | |
assignee_ids | No | Array of user IDs to assign (array of integers). Multiple assignees supported. Example: [123, 456] | |
description | No | Description body (string, markdown supported). Can include mentions (@user), references (#123, !456), and task lists | |
discussion_locked | No | Lock discussion threads (boolean). Prevents new comments except by project members. Default: false | |
labels | No | Labels to apply (string, comma-separated). Example: 'bug,priority:high,frontend'. Creates new labels if needed | |
milestone_id | No | Milestone ID to associate (integer). Must be an existing milestone in the project. Use null to unset | |
mr_iid | Yes | Merge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID | |
project_id | No | Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided | |
remove_source_branch | No | Delete source branch after merge (boolean). Cleans up feature branches. Default: false. Requires permissions | |
reviewer_ids | No | Array of user IDs to request review from (array of integers). MR reviewers. Example: [789, 012] | |
squash | No | Squash commits on merge (boolean). Combines all commits into one. Default: follows project settings | |
state_event | No | State transition action (string). Options: 'close' (close issue/MR), 'reopen' (reopen closed issue/MR) | |
target_branch | No | Target branch for merge (string, required). The branch to merge into. Example: 'main' or 'develop' | |
title | No | Title text (string, required for create/update). Max 255 characters. Supports emoji and special characters |