glab(1)
π glab(1) β the girl's guide to glab
ok so this is the glab manual, section 1, and bestie we are diving into one very specific little corner of it: glab-mr-note-draft-update. Yes that's a mouthful. Yes it slays. Let's go π
β¨ NAME β¨
glab-mr-note-draft-update β update the body of one of your pending review comments. (EXPERIMENTAL) π§ͺ
β¨ SYNOPSIS β¨
glab mr note draft update [ | ] [flags]
β¨ DESCRIPTION β¨
okay so picture this: you're mid-review, you've got a pending review comment sitting there, not published yet, and you wanna change what it says. That's literally this command π It replaces the body of a pending review comment before you publish the review.
<draft-note-id> is the ID that glab mr note draft create printed out for you, or the one you saw listed by glab mr note draft list. That's your lil tracking number, don't lose it π«
Now the important bits, and I need you to hear me on this one:
- You can change only the body. That's it. A pending diff comment stays on the same file and the same lines β no moving it around, no cap.
- Pending comments on images cannot be updated from the command line at all π like, not "it's hard", not "it's janky" β literally cannot. The reason is that their position can't be preserved. Soz.
About --attach: it uploads a file and references it at the end of the comment πΌοΈ Repeat the flag if you've got more than one file (a girl can have multiple screenshots), or pass - to read the file from standard input. And here's the cute part: without --message, those references get added to the body the comment already has, instead of replacing it. So your existing words survive, the pic just gets appended. Obsessed.
β οΈ real talk: this feature is an experiment and is not ready for production use. It might be unstable or removed at any time π no notes, that's just how it is. For more info, see https://docs.gitlab.com/policy/development_stages_support/ β go read it, iykyk.
π₯ OPTIONS π₯
--attach=[]β (EXPERIMENTAL) upload a file and reference it at the end of the comment. Use-to read the file from standard input. Repeat the flag to attach multiple files. π-m,--message=""β the new comment body. If omitted, it opens an editor or reads from stdin. main character energy honestly βοΈ
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β show help for this command. the classic. π«Ά-R,--repo=""β select another repository. You can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. so flexible, we love her π
β EXAMPLE β
# Update pending review comment 456 on merge request 123
glab mr note draft update 123 456 -m "Revised comment"
# Update a pending review comment on the current branch's merge request, composing in an editor
glab mr note draft update 456
# Pipe the new body from stdin
echo "new body" | glab mr note draft update 123 456
# Add a screenshot to the existing comment body
glab mr note draft update 123 456 --attach ./screenshot.png
see how the last one doesn't pass -m? that's the whole append-don't-replace thing in action, iconic β¨
π SEE ALSO π
glab-mr-note-draft(1)β the whole draft-note family, go say hi π«
and that's the page, bestie π¦π this manual page was auto generated by spf13/cobra, dated Nov 2026, and it belongs to glab(1) β mwah, go update some draft comments, you got this π
πΈ
π¦ 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