glab-mr-note-list - Man Page
List merge request discussions. (EXPERIMENTAL)
Synopsis
glab mr note list [ | ] [flags]
Description
Fetches and displays merge request discussions.
Human-readable output shows an eight-character prefix for each non-system discussion. Use the characters before the ellipsis with glab mr note create --reply. JSON output preserves the full discussion ID in the id field of each discussion object. Extract it with: glab mr note list -F json | jq -r '.[].id'.
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/.
Options
--file="" Show only diff notes on this file path.
--jq="" Filter JSON output with a jq expression.
-F, --output="text" Format output as: text, json.
--state="all" Resolution state: all, resolved, unresolved.
-t, --type="all" Note type: all, general, diff, system.
Options Inherited from Parent Commands
-h, --help[=false] Show help for this command.
-R, --repo="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.
Example
# 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