From 27f98ee59aced1574592a92afa563d0d6beb6f02 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Wed, 13 Jan 2021 09:42:48 +0800 Subject: [PATCH] fix: page bug --- github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github.go b/github.go index 19b2e99..d751546 100644 --- a/github.go +++ b/github.go @@ -136,8 +136,8 @@ func makeCreatedRepos(repos []*github.Repository) ([]myRepoInfo, int, int) { } func fetchAllPrIssues(username string, client *github.Client) []*github.Issue { - opt := &github.SearchOptions{ListOptions: github.ListOptions{PerPage: 100}} nowPage := 100 + opt := &github.SearchOptions{ListOptions: github.ListOptions{Page: 1, PerPage: 100}} var allIssues []*github.Issue for { result, _, err := client.Search.Issues(context.Background(), fmt.Sprintf("is:pr author:%s is:closed is:merged", username), opt)