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

glab mr note list

List merge request discussions. (EXPERIMENTAL)

Synopsis

Fetches and displays merge request discussions.

Uses the same output format as glab mr view --comments. Supports filtering by note type, resolution state, and file path. Supports JSON output for scripting.

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

Examples

# List all discussions on the current branch's MR
glab mr note list

# List diff comments only
glab mr note list --type diff

# List unresolved discussions
glab mr note list --state unresolved

# List discussions on a specific file
glab mr note list --file src/main.go

# JSON output for scripting
glab mr note list -F json | jq '.[].notes[].body'

# List discussions on MR 123
glab mr note list 123

Options

      --file string     Show only diff notes on this file path.
  -F, --output string   Format output as: text, json. (default "text")
      --state string    Resolution state: all, resolved, unresolved. (default "all")
  -t, --type string     Note type: all, general, diff, system. (default "all")

Options inherited from parent commands

  -h, --help              Show help for this command.
  -R, --repo OWNER/REPO   Select another repository. Can use either OWNER/REPO or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.