glab(1)

πŸ“¦
version 1.128.0 Β· 2 versions
, in arch rolling

πŸ’… 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 either OWNER/REPO or GROUP/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 πŸ‘‘


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