ListRepositoryEvents lists events for the specified repository. GitHub API docs: https://docs.github.com/rest/issues/events?apiVersion=2022-11-28#list-issue-events-for-a-repository meta:operation GET /repos/{owner}/{repo}/issues/events
(ctx context.Context, owner, repo string, opts *ListOptions)
| 136 | // |
| 137 | //meta:operation GET /repos/{owner}/{repo}/issues/events |
| 138 | func (s *IssuesService) ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error) { |
| 139 | u := fmt.Sprintf("repos/%v/%v/issues/events", owner, repo) |
| 140 | u, err := addOptions(u, opts) |
| 141 | if err != nil { |
| 142 | return nil, nil, err |
| 143 | } |
| 144 | |
| 145 | req, err := s.client.NewRequest(ctx, "GET", u, nil) |
| 146 | if err != nil { |
| 147 | return nil, nil, err |
| 148 | } |
| 149 | |
| 150 | var events []*IssueEvent |
| 151 | resp, err := s.client.Do(req, &events) |
| 152 | if err != nil { |
| 153 | return nil, resp, err |
| 154 | } |
| 155 | |
| 156 | return events, resp, nil |
| 157 | } |
| 158 | |
| 159 | // GetEvent returns the specified issue event. |
| 160 | // |