MCPcopy
hub / github.com/cli/cli / GetByNumber

Method GetByNumber

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

GetByNumber returns a single discussion by its number.

(repo ghrepo.Interface, number int32)

Source from the content-addressed store, hash-verified

29 Search(repo ghrepo.Interface, filters SearchFilters, after string, limit int) (*DiscussionListResult, error)
30 // GetByNumber returns a single discussion by its number.
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.

Callers 4

TestGetByNumberFunction · 0.65
viewRunFunction · 0.65
runAddFunction · 0.65
editRunFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestGetByNumberFunction · 0.52