.nh .TH "glab" "1" "Oct 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-mr-note-draft-update - Update the body of one of your pending review comments. (EXPERIMENTAL) .SH SYNOPSIS \fBglab mr note draft update [ | ] [flags]\fP .SH DESCRIPTION Replace the body of a pending review comment before you publish the review. \fB\fR is the ID printed by \fBglab mr note draft create\fR or listed by \fBglab mr note draft list\fR\&. .PP You can change only the body. A pending diff comment stays on the same file and lines. Pending comments on images cannot be updated from the command line, because their position cannot be preserved. .PP \fB--attach\fR uploads a file and references it at the end of the comment. Repeat the flag for more than one file, or pass \fB-\fR to read the file from standard input. Without \fB--message\fR the references are added to the body the comment already has, instead of replacing it. .PP This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/. .SH OPTIONS \fB--attach\fP=[] (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. .PP \fB-m\fP, \fB--message\fP="" New comment body. If omitted, opens an editor or reads from stdin. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX # 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 .EE .SH SEE ALSO \fBglab-mr-note-draft(1)\fP