glab mr note draft publish
Publish all your pending review comments on a merge request. (EXPERIMENTAL)
Synopsis
Publish every pending review comment you created on a merge request, as when you submit a review from the merge request page. Only your own pending comments are published; other reviewers’ pending comments are unaffected. Check what is pending with glab mr note draft list first.
Use --message to add a summary note to the merge request when publishing, and --internal to restrict that summary to project members with at least the Reporter role.
Use --reviewer-state to set your review state on the merge request. Neither state records a formal approval; use glab mr approve to approve. If you are the merge request author, GitLab ignores this flag unless you are also listed as one of the reviewers.
Unless you pass --yes, the command shows the number of pending comments and prompts you to confirm. When not running interactively, --yes is required. If there are no pending comments, the command exits with an error.
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/.
glab mr note draft publish [<id> | <branch>] [flags]Examples
# Publish your pending review comments on merge request 123
glab mr note draft publish 123
# Publish the current branch's pending review comments
glab mr note draft publish
# Publish with a summary note and request changes
glab mr note draft publish 123 -m "A few blockers, see the comments." --reviewer-state requested_changes
# Publish without confirmation
glab mr note draft publish 123 --yes
Options
--internal Mark the summary note as internal. Requires --message.
-m, --message string Summary note to add to the merge request when publishing.
--reviewer-state string Set the review state after publishing: requested_changes, reviewed. Does not record a formal approval.
-y, --yes Skip confirmation prompt.Options inherited from parent commands
-h, --help Show help for this command.
-R, --repo string Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.