GH-DISCUSSION-LIST(1)
π¬ gh-discussion-list β the GitHub CLI manual page, but make it cute π
okay so bestie, this is the manual page for gh-discussion-list, straight out of the GitHub CLI manual β¨. It's currently in preview, which is giving "we're still cooking, don't @ me" energy, but honestly it already slays. Sit down, grab a strawberry π, and let's go.
πΈ NAME πΈ
gh-discussion-list β lists discussions in a repository π
(preview, bestie β it's new new)
β¨ SYNOPSIS β¨
gh discussion list [flags]
that's it. that's the whole vibe. flags are optional but they're where the fun lives π¦
π DESCRIPTION π
So like β this lists the discussions in a GitHub repository. And by default, only open discussions are shown. Not closed ones. Not all of them. Just the open ones, bestie. If you want the closed ones you gotta ask nicely with a flag, okay? π Lowkey iconic default behavior, no cap.
π OPTIONS π
here's the whole flag family, every single one, no gatekeeping π«Ά
--after <string>β the cursor for the next page of results. it's giving "pagination but make it a string" β¨--answeredβ filter by answered state. yep, that's the whole thing π-A,--author <string>β filter by author. only discussions from that person, main character energy π-c,--category <string>β filter by category name or slug. either works, she's flexible πΈ-q,--jq <expression>β filter the JSON output using ajqexpression. chef's kiss for the data girlies π₯--json <fields>β output JSON with the specified fields. choose your own adventure β¨-l,--label <strings>β filter by label. plurals everywhere, we love to see it π-L,--limit <int>(default30) β maximum number of discussions to fetch. thirty. that's the default. respect it π--order <string>(default"desc") β order of results:{asc|desc}. descending by default, we're going down bestie π¦-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat. go visit someone else's repo, respectfully π-S,--search <query>β search discussions with a query. detective mode π--sort <string>(default"updated") β sort by field:{created|updated}. updated is the default, so fresh-to-death first β-s,--state <string>(default"open") β filter by state:{open|closed|all}. defaults toopen, remember? told you π-t,--template <string>β format JSON output using a Go template; seegh help formatting. fancy formatting era π-w,--webβ list discussions in the web browser. bye, going to the browser π
π¦ ALIASES π¦
gh discussion ls
yes, ls works too. because of course it does. iykyk π
π JSON FIELDS π
these are the fields you can request with --json, all of them, copy-paste ready:
answerChosenAt, answerChosenBy, answered, author, body, category,
closed, closedAt, createdAt, id, labels, locked, number, stateReason,
title, updatedAt, url
look at that lineup. answerChosenAt? stateReason? absolutely ate π₯
π EXIT CODES π
0β successful execution. slay π1β error. it's giving oops π2β command canceled. you changed your mind, that's valid π«Ά4β authentication required. log in bestie, we can't get in like that π
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. so like, don't come for me if there's a 5 somewhere, check the command's own help fr fr π
π EXAMPLE π
real commands, real copy-paste energy, exactly as written:
# List open discussions
$ gh discussion list
# List discussions with a specific category
$ gh discussion list --category General
# List closed discussions by author
$ gh discussion list --state closed --author monalisa
# List all discussions (closed or open) by label
$ gh discussion list --state all --label bug,enhancement
# List answered Q&A discussions as JSON
$ gh discussion list --answered --json number,title,url
# List unanswered Q&A discussions as JSON
$ gh discussion list --answered=false --json number,title,url
the --answered=false one is so underrated btw. unanswered Q&A hunting era πΈ
π§ SEE ALSO π§
gh-discussion(1)β the parent command, go say hi π«Ά
and that's the page!! you made it, bestie π this was GitHub CLI v2.102.0, dated Oct 2026 β mwah, love that for us, go list some discussions πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms