MCPcopy
hub / github.com/cli/cli / AddComment

Method AddComment

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

AddComment adds a comment or reply to a discussion. If replyToID is non-empty, the comment is created as a reply to that comment.

(repo ghrepo.Interface, discussionID, body, replyToID string)

Source from the content-addressed store, hash-verified

46 // AddComment adds a comment or reply to a discussion. If replyToID is
47 // non-empty, the comment is created as a reply to that comment.
48 AddComment(repo ghrepo.Interface, discussionID, body, replyToID string) (*DiscussionComment, error)
49 // UpdateComment updates the body of an existing discussion comment or reply.
50 UpdateComment(repo ghrepo.Interface, commentID, body string) (*DiscussionComment, error)
51 // DeleteComment deletes a discussion comment or reply.

Callers 3

TestAddCommentFunction · 0.65
runReplyFunction · 0.65
runAddFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestAddCommentFunction · 0.52