MCPcopy
hub / github.com/cli/cli / GetComment

Method GetComment

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

GetComment fetches a single discussion comment by node ID.

(host string, commentID string)

Source from the content-addressed store, hash-verified

52 DeleteComment(repo ghrepo.Interface, commentID string) error
53 // GetComment fetches a single discussion comment by node ID.
54 GetComment(host string, commentID string) (*DiscussionComment, error)
55 // ResolveCommentNodeID constructs a discussion comment node ID from a
56 // repository and a comment database ID (the numeric ID from the URL fragment).
57 ResolveCommentNodeID(repo ghrepo.Interface, commentDatabaseID int64) (string, error)

Callers 5

TestGetCommentFunction · 0.65
viewRunFunction · 0.65
runDeleteFunction · 0.65
runEditFunction · 0.65
runReplyFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestGetCommentFunction · 0.52