Skip to content

Commit

Permalink
api: Correct PR comment list type and pagination
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <alex@nderjung.net>
  • Loading branch information
nderjung committed Apr 22, 2021
1 parent 62ce76e commit 2ff579f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ func (c *GithubClient) ListPullRequestComments(prID int) ([]*github.IssueComment
c.Owner,
c.Repository,
prID,
&github.PullRequestListCommentsOptions{},
&github.IssueListCommentsOptions{
ListOptions: github.ListOptions{
// TODO: We need to break up requests and be good API consumers
PerPage: 1000,
},
},
)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2ff579f

Please sign in to comment.