MCPcopy Index your code
hub / github.com/cli/cli / GetWithComments

Method GetWithComments

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

GetWithComments returns a discussion along with a page of its comments.

(repo ghrepo.Interface, number int32, commentLimit int, after string, newest bool)

Source from the content-addressed store, hash-verified

31 GetByNumber(repo ghrepo.Interface, number int32) (*Discussion, error)
32 // GetWithComments returns a discussion along with a page of its comments.
33 GetWithComments(repo ghrepo.Interface, number int32, commentLimit int, after string, newest bool) (*Discussion, error)
34 // GetCommentReplies returns a comment's parent discussion along with a page of the comment's replies.
35 GetCommentReplies(host string, commentID string, limit int, after string, newest bool) (*Discussion, error)
36 // ListCategories returns the discussion categories available in a repository.

Callers 2

TestGetWithCommentsFunction · 0.65
viewRunFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestGetWithCommentsFunction · 0.52