Skip to content

Commit

Permalink
Increase statuses per_page
Browse files Browse the repository at this point in the history
  • Loading branch information
rosswhitfield committed Jun 9, 2016
1 parent f7296ac commit 998fe3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ func (c Config) updateGithubStatus(repoName, context, sha, state, desc, buildUrl
}

func hasStatus(gh *octokat.Client, repo octokat.Repo, sha, context string) bool {
statuses, err := gh.Statuses(repo, sha, &octokat.Options{})
statuses, err := gh.Statuses(repo, sha, &octokat.Options{
QueryParams: map[string]string{"per_page": "100"},
})
if err != nil {
log.Warnf("getting status for %s for %s/%s failed: %v", sha, repo.UserName, repo.Name, err)
return false
Expand Down Expand Up @@ -230,7 +232,7 @@ func (c Config) getFailedPRs(context, repoName string) (nums []int, err error) {

// get pull requests
prs, err := gh.PullRequests(repo, &octokat.Options{
Params: map[string]string{
QueryParams: map[string]string{
"state": "open",
"per_page": "100",
},
Expand Down

0 comments on commit 998fe3a

Please sign in to comment.