--- title: '`glab issue note`' stage: AI Clients group: Developer Clients info: To determine the technical writer assigned to the Stage/Group associated with this page, see --- Comment on an issue in GitLab. ## Synopsis Without `--message`, opens an editor at a terminal, and otherwise reads the comment from standard input, such as when input is piped or redirected. `--attach` uploads a file and references it at the end of the comment. Repeat the flag for more than one file, or pass `-` to read the file from standard input. An attachment is content on its own, so a comment with only `--attach` does not prompt for a body. When standard input is not a terminal, it is read as the comment body, unless `--attach -` reads the file from standard input. The command waits until standard input closes, so to post only the attachment from a script, redirect standard input from `/dev/null`. The `--attach` flag is an experiment. It might be unstable or removed at any time, and is not ready for production use. For more information, see . ```plaintext glab issue note [flags] ``` ## Aliases ```plaintext comment ``` ## Examples ```console # Comment on issue 123, opening an editor for the message glab issue note 123 # Comment with the message given inline glab issue note 123 --message "Looking into this now." # Create an internal note, visible only to project members glab issue note 123 --message "Rotating the leaked token now." --internal # Attach a screenshot alongside the message glab issue note 123 --message "Here is the repro." --attach ./screenshot.png # Attach an image piped from the clipboard pngpaste - | glab issue note 123 --attach - # Comment with the message read from a file glab issue note 123 < comment.md ``` ## Options ```plaintext --attach stringArray (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. --internal Create the note as an internal note, visible only to project members. -m, --message string Message text. ``` ## Options inherited from parent commands ```plaintext -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. ```