UpdateComment updates the body of a single comment. GitHub API docs: https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#update-a-commit-comment meta:operation PATCH /repos/{owner}/{repo}/comments/{comment_id}
(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment)
| 140 | // |
| 141 | //meta:operation PATCH /repos/{owner}/{repo}/comments/{comment_id} |
| 142 | func (s *RepositoriesService) UpdateComment(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment) (*RepositoryComment, *Response, error) { |
| 143 | u := fmt.Sprintf("repos/%v/%v/comments/%v", owner, repo, id) |
| 144 | req, err := s.client.NewRequest(ctx, "PATCH", u, comment) |
| 145 | if err != nil { |
| 146 | return nil, nil, err |
| 147 | } |
| 148 | |
| 149 | var c *RepositoryComment |
| 150 | resp, err := s.client.Do(req, &c) |
| 151 | if err != nil { |
| 152 | return nil, resp, err |
| 153 | } |
| 154 | |
| 155 | return c, resp, nil |
| 156 | } |
| 157 | |
| 158 | // DeleteComment deletes a single comment from a repository. |
| 159 | // |