MCPcopy Create free account
hub / github.com/cli/cli / GetByNumber

Method GetByNumber

pkg/cmd/discussion/client/client.go:28–28  ·  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

26 Search(repo ghrepo.Interface, filters SearchFilters, after string, limit int) (*DiscussionListResult, error)
27 // GetByNumber returns a single discussion by its number.
28 GetByNumber(repo ghrepo.Interface, number int32) (*Discussion, error)
29 // GetWithComments returns a discussion along with a page of its comments.
30 GetWithComments(repo ghrepo.Interface, number int32, commentLimit int, after string, newest bool) (*Discussion, error)
31 // 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