MCPcopy
hub / github.com/cli/cli / ListCategories

Method ListCategories

pkg/cmd/discussion/client/client.go:37–37  ·  view source on GitHub ↗

ListCategories returns the discussion categories available in a repository.

(repo ghrepo.Interface)

Source from the content-addressed store, hash-verified

35 GetCommentReplies(host string, commentID string, limit int, after string, newest bool) (*Discussion, error)
36 // ListCategories returns the discussion categories available in a repository.
37 ListCategories(repo ghrepo.Interface) ([]DiscussionCategory, error)
38 // ListLabels returns the labels available in a repository.
39 ListLabels(repo ghrepo.Interface) ([]DiscussionLabel, error)
40 // Create creates a discussion. The returned discussion may be non-nil even

Callers 5

TestListCategoriesFunction · 0.65
listRunFunction · 0.65
createRunFunction · 0.65
editRunFunction · 0.65
promptEditFunction · 0.65

Implementers 2

DiscussionClientMockpkg/cmd/discussion/client/client_mock.
discussionClientpkg/cmd/discussion/client/client.go

Calls

no outgoing calls

Tested by 1

TestListCategoriesFunction · 0.52