MCPcopy Index your code
hub / github.com/google/go-github / ListIssueCommentReactions

Method ListIssueCommentReactions

github/reactions.go:221–242  ·  view source on GitHub ↗

ListIssueCommentReactions lists the reactions for an issue comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-an-issue-comment meta:operation GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions

(ctx context.Context, owner, repo string, id int64, opts *ListReactionOptions)

Source from the content-addressed store, hash-verified

219//
220//meta:operation GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions
221func (s *ReactionsService) ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListReactionOptions) ([]*Reaction, *Response, error) {
222 u := fmt.Sprintf("repos/%v/%v/issues/comments/%v/reactions", owner, repo, id)
223 u, err := addOptions(u, opts)
224 if err != nil {
225 return nil, nil, err
226 }
227
228 req, err := s.client.NewRequest(ctx, "GET", u, nil)
229 if err != nil {
230 return nil, nil, err
231 }
232
233 req.Header.Set("Accept", mediaTypeReactionsPreview)
234
235 var m []*Reaction
236 resp, err := s.client.Do(req, &m)
237 if err != nil {
238 return nil, resp, err
239 }
240
241 return m, resp, nil
242}
243
244// CreateIssueCommentReaction creates a reaction for an issue comment.
245// Note that if you have already created a reaction of type content, the

Calls 3

addOptionsFunction · 0.85
NewRequestMethod · 0.80
DoMethod · 0.45