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

Method Update

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

40 // Update updates a discussion. The returned discussion may be non-nil even
41 // when err is non-nil, indicating a secondary mutation failure (e.g., labels).
42 Update(repo ghrepo.Interface, input UpdateDiscussionInput) (*Discussion, error)
43 // AddComment adds a comment or reply to a discussion. If replyToID is
44 // non-empty, the comment is created as a reply to that comment.
45 AddComment(repo ghrepo.Interface, discussionID, body, replyToID string) (*DiscussionComment, error)

Callers 8

TestUpdateFunction · 0.65
editRunFunction · 0.65
SetupMethod · 0.65
UpdateMethod · 0.65
updateBrowseModelFunction · 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 3

TestUpdateFunction · 0.52
updateBrowseModelFunction · 0.52