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

Method UpdateComment

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

UpdateComment updates the body of an existing discussion comment or reply.

(repo ghrepo.Interface, commentID, body string)

Source from the content-addressed store, hash-verified

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.
52 DeleteComment(repo ghrepo.Interface, commentID string) error
53 // GetComment fetches a single discussion comment by node ID.

Callers 2

TestUpdateCommentFunction · 0.65
runEditFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestUpdateCommentFunction · 0.52