Skip to content

mw gitlab mr update

Releasev0.35.0 · cfeceb67

mw gitlab mr update [<id> | <branch>] [flags]

Update a merge request.

-a, --assignee <strings>
Assign users via username. Prefix with '!' or '-' to remove from existing assignees, '+' to add. Otherwise, replace existing assignees with given users. Multiple usernames can be comma-separated or specified by repeating the flag.
-d, --description <string>
Merge request description. Set to "-" to open an editor.
--draft
Mark merge request as a draft.
-f, --fill
Do not prompt for title or body, and just use commit info.
--fill-commit-body
Fill body with each commit body when multiple commits. Can only be used with --fill.
-l, --label <strings>
Add labels.
--lock-discussion
Lock discussion on merge request.
-m, --milestone <string>
Title of the milestone to assign. Set to "" or 0 to unassign.
-r, --ready
Mark merge request as ready to be reviewed and merged.
--remove-source-branch
Toggles the removal of the source branch on merge.
--reviewer <strings>
Request review from users by their usernames. Prefix with '!' or '-' to remove from existing reviewers, '+' to add. Otherwise, replace existing reviewers with given users. Multiple usernames can be comma-separated or specified by repeating the flag.
--squash-before-merge
Toggles the option to squash commits into a single commit when merging.
--target-branch <string>
Set target branch.
-t, --title <string>
Title of merge request.
--unassign
Unassign all users.
-u, --unlabel <strings>
Remove labels.
--unlock-discussion
Unlock discussion on merge request.
--wip
Mark merge request as a work in progress. Alternative to --draft.
-y, --yes
Skip confirmation prompt.
-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-R, --repo <OWNER/REPO>
Select another repository. Can use either OWNER/REPO or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
# Mark a merge request as ready
$ glab mr update 23 --ready
# Mark a merge request as draft
$ glab mr update 23 --draft
# Updates the merge request for the current branch
$ glab mr update --draft
# Update merge request with commit information
$ glab mr update 23 --fill --fill-commit-body --yes
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.