glab(1)
π glab-mr-update β fresh from the glab(1) manual π
πΈ NAME πΈ
glab-mr-update β Update a merge request. Thatβs the whole assignment, bestie, and it ate. π
β¨ SYNOPSIS β¨
glab mr update [ | ] [flags]
π¦ DESCRIPTION π¦
Defaults to the currently checked-out branch. Use --fill to automatically fill the title and description from the commit history. Itβs giving βlet the commits do the talking.β β¨
--attach uploads a file and references it at the end of the description. Repeat the flag for more than one file, or pass - to read the file from standard input. Without --description the references are added to the description the merge request already has, instead of replacing it. Very βappend, donβt eraseβ of it. π«Ά
π Heads up, bestie: The--attachflag is an experiment. It might be unstable or removed at any time, and is not ready for production use. For more information, seehttps://docs.gitlab.com/policy/development_stages_support/.
π OPTIONS π
-a,--assignee=[]β 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. π--attach=[]β (EXPERIMENTAL) Upload a file and reference it at the end of the description. Use-to read the file from standard input. Repeat the flag to attach multiple files. π-d,--description=""β Merge request description. Set to-to open an editor. βοΈ--description-file=""β Read the merge request description from a file. Use-to read from standard input. π--draft[=false]β Mark merge request as a draft. π§-f,--fill[=false]β Do not prompt for title or body, and just use commit info. Let the commits speak, periodt. π₯--fill-commit-body[=false]β Fill body with each commit body when multiple commits. Can only be used with--fill. π§-l,--label=[]β Add labels. π·οΈ--lock-discussion[=false]β Lock discussion on merge request. π-m,--milestone=""β Title of the milestone to assign. Set to""or0to unassign. π―-r,--ready[=false]β Mark merge request as ready to be reviewed and merged. Main character move, no cap. π--remove-source-branch[=false]β Toggles the removal of the source branch on merge. πͺ--reviewer=[]β 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[=false]β Toggles the option to squash commits into a single commit when merging. π§Ό--state="any"β Filter by state when selecting a merge request by branch:opened,closed,merged,locked,any. Ignored for IDs and URLs. π§--target-branch=""β Set target branch. πΏ-t,--title=""β Title of merge request. π--unassign[=false]β Unassign all users. π«₯-u,--unlabel=[]β Remove labels. π§Ή--unlock-discussion[=false]β Unlock discussion on merge request. π--wip[=false]β Mark merge request as a work in progress. Alternative to--draft. π οΈ-y,--yes[=false]β Skip confirmation prompt. Say less and send it. β‘
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β Show help for this command. π-R,--repo=""β Select another repository. You can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. π
π§ͺ EXAMPLE π§ͺ
# 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
# Select the open merge request when a branch also has merged requests
glab mr update feature-branch --state opened --ready
# Update merge request with commit information
glab mr update 23 --fill --fill-commit-body --yes
# Read the description from a file
glab mr update 23 --description-file description.md
# Read the description from standard input
cat description.md | glab mr update 23 --description-file -
# Add a screenshot to the existing description
glab mr update 23 --attach ./screenshot.png
π SEE ALSO π
glab-mr(1)β go hang out with the rest of the merge request squad. π
π auto-generated by spf13/cobra Β· Nov 2026 Β· glab(1) Β· now go update those merge requests, bestie π«Ά
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms