MCPcopy
hub / github.com/cli/cli / Update

Method Update

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

Update updates a discussion. The returned discussion may be non-nil even when err is non-nil, indicating a secondary mutation failure (e.g., labels).

(repo ghrepo.Interface, input UpdateDiscussionInput)

Source from the content-addressed store, hash-verified

43 // Update updates a discussion. The returned discussion may be non-nil even
44 // when err is non-nil, indicating a secondary mutation failure (e.g., labels).
45 Update(repo ghrepo.Interface, input UpdateDiscussionInput) (*Discussion, error)
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)

Callers 5

TestUpdateFunction · 0.65
editRunFunction · 0.65
SetupMethod · 0.65
UpdateMethod · 0.65
updateSearchMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestUpdateFunction · 0.52