cli/pkg/cmd/discussion/client
Max Beizer 17238050d7
Check hasDiscussionsEnabled in ListCategories
When --category is used, ListCategories runs before the List query.
On repos with discussions disabled, it silently returns empty categories,
leading to a confusing "must be one of []" error. Now it checks
hasDiscussionsEnabled and returns the standard "discussions disabled"
error, matching the behavior of List and Search.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-13 10:38:51 -05:00
..
client.go Address review feedback on discussion list PR 2026-04-13 10:20:09 -05:00
client_impl.go Check hasDiscussionsEnabled in ListCategories 2026-04-13 10:38:51 -05:00
client_mock.go Address review feedback on discussion list PR 2026-04-13 10:20:09 -05:00
types.go Address review feedback on discussion list PR 2026-04-13 10:20:09 -05:00