From c1f8ebce75115651baecebadc51db1410a57c013 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Wed, 1 May 2019 10:58:48 -0400 Subject: [PATCH] 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 --- modules/github/github_repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/github/github_repo.go b/modules/github/github_repo.go index b5e61020..79c8d728 100644 --- a/modules/github/github_repo.go +++ b/modules/github/github_repo.go @@ -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)