1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Increase the pagination limit for github

Currently, we are only getting a subset of PRs. For very active repos, this might mean I don't see any of my PRs
This isn't an explicit fix (iterating through pages would be), but at least lessens the problem
This commit is contained in:
Sean Smith 2019-05-01 10:58:48 -04:00
parent 378cce8726
commit c1f8ebce75

View File

@ -160,6 +160,7 @@ func (repo *GithubRepo) loadPullRequests() ([]*ghb.PullRequest, error) {
}
opts := &ghb.PullRequestListOptions{}
opts.ListOptions.PerPage = 100
prs, _, err := github.PullRequests.List(context.Background(), repo.Owner, repo.Name, opts)