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

Function CommentDelete

api/queries_comments.go:106–125  ·  view source on GitHub ↗
(client *Client, repoHost string, params CommentDeleteInput)

Source from the content-addressed store, hash-verified

104}
105
106func CommentDelete(client *Client, repoHost string, params CommentDeleteInput) error {
107 var mutation struct {
108 DeleteIssueComment struct {
109 ClientMutationID string
110 } `graphql:"deleteIssueComment(input: $input)"`
111 }
112
113 variables := map[string]interface{}{
114 "input": githubv4.DeleteIssueCommentInput{
115 ID: githubv4.ID(params.CommentId),
116 },
117 }
118
119 err := client.Mutate(repoHost, "CommentDelete", &mutation, variables)
120 if err != nil {
121 return err
122 }
123
124 return nil
125}
126
127func (c Comment) Identifier() string {
128 return c.ID

Callers 1

deleteCommentFunction · 0.92

Calls 2

IDMethod · 0.65
MutateMethod · 0.65

Tested by

no test coverage detected