GCLI-COMMENT(1)

πŸ“¦
version 2.13.0 Β· 5 versions
, in nixpkgs unstable, ubuntu stonking

✨ NAME ✨

gcli comment β€” drop a comment on tickets in git forges πŸ’¬πŸ’…

okay so real quick, bestie: this is page gcli-comment(1) out of the General Commands Manual. It's the corner of the group chat where you leave a lil note under somebody's issue or PR. 🫢


🌸 SYNOPSIS 🌸

gcli comment [forge-path] [-y] [-o owner -r repo] [-i issue | -p PR]
             [-R comment]

πŸ’– DESCRIPTION πŸ’–

gcli comment is literally here to add comments into the discussion happening under issues and pull requests on git(1) forges β€” you know the ones: GitHub, GitLab, Gitea. 🌈

Heads up though: on GitHub and Gitea, PRs are treated as issues, which means -i and -p are exchangeable β€” swapping them does not change the overall effect of creating the comment. Same result, different flag, no cap. πŸ’€

Oh and it's not just gonna post out of nowhere β€” gcli comment opens an editor for you to actually type the comment in. Which editor? Either whatever's in your environment via EDITOR, or the one you set in your global config file. Go look at gcli(1) for that. πŸ“βœ¨


πŸ‘‘ OPTIONS πŸ‘‘

  • -o, --owner owner β€” Comment in the repository of the given owner. This option can only be used in combination with -r. 🏠
  • -r, --repo repo β€” Comment in the given repository. This option can only be used in combination with -r. πŸ“¦
  • -y, --yes β€” Do not ask for confirmation before submitting the comment. Assume yes. (no take-backsies energy) βœ…
  • -i, --issue issue β€” Create the comment under issue #issue. πŸ”’
  • -p, --pull pr β€” Create the comment under PR #pr. πŸ”€
  • -R, --in-reply-to comment β€” Create a reply to the comment with ID comment. This will put the referenced comment prefixed with "> " into the response file for you to edit. πŸ’¬πŸͺ„

πŸ¦‹ EXAMPLES πŸ¦‹

Comment under PR #11 in the upstream repository:

$ gcli comment -p 11

Comment under issue 1 in herrhotzenplotz/gcli:

$ gcli comment -o herrhotzenplotz -r gcli -i 1

Comment under issue 1 in herrhotzenplotz/gcli on GitLab using the forge path shorthand:

$ gcli comment gl:herrhotzenplotz/gcli -i 1

🌈 SEE ALSO 🌈

git(1), gcli(1), gcli-issues(1), gcli-pulls(1)

(go read these too, they're the whole friend group 🫢)


πŸŽ€ AUTHORS πŸŽ€

Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors. πŸ’œ


πŸ“ BUGS πŸ“

There is no way to preview the markdown markup β€” however you can input markdown which will be rendered on the remote site. 😭 (so type carefully bestie, you're seeing raw source only)

Please report bugs via E-Mail to <https://lists.sr.ht/~herrhotzenplotz/gcli-discuss>.

Alternatively you can report them on any of the forges linked at <https://sr.ht/~herrhotzenplotz/gcli>. However, the preferred and quickest method is to use the mailing list. πŸ‘‘


that's the whole page, you ate it πŸ’… β€” this one's gcli version 2.13.0, dated 05-Aug-2026, and the footer calls it $Mdocdate$ under UNTITLED(). mwah, go comment on something πŸ§šπŸ’–

πŸ“¦ where this page comes from