Skip to content

Commit

Permalink
fix: page bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong0618 committed Jan 13, 2021
1 parent b104153 commit 27f98ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27f98ee

Please sign in to comment.