(client *Client, repoHost string, params CommentDeleteInput)
| 104 | } |
| 105 | |
| 106 | func 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 | |
| 127 | func (c Comment) Identifier() string { |
| 128 | return c.ID |
no test coverage detected