正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。
ドキュメントに関する現在のご利用体験についてお聞かせください。アンケートにご協力ください。

glab mr note publish

Publish all pending review comments on a merge request. (EXPERIMENTAL)

Synopsis

Publish every pending review comment you created on a merge request with glab mr note create --draft. Only your own pending comments are published; other reviewers’ pending comments are unaffected.

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.

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 publish [<id> | <branch>] [flags]

Examples

console
# Publish your pending review comments on merge request 123
glab mr note publish 123

# Publish the current branch's pending review comments
glab mr note publish

# Publish with a summary note and request changes
glab mr note publish 123 -m "A few blockers, see the comments." --reviewer-state requested_changes

# Publish without confirmation
glab mr note 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.