Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Reduce pagination size to 100 to more accurately reflect Github's api…
Browse files Browse the repository at this point in the history
… paginiation limit
  • Loading branch information
Ryan Garant committed Jul 4, 2018
1 parent df52bfe commit e108274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cmds/pull-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ PullRequest.prototype.listFromAllRepositories = function(opt_callback) {
payload = {
type: 'all',
user: options.user,
per_page: 1000,
per_page: 100,
}

if (options.org) {
Expand Down Expand Up @@ -678,7 +678,7 @@ PullRequest.prototype.listFromAllOrgRepositories = function(opt_callback) {
type: 'all',
user: options.user,
org: options.org,
per_page: 1000,
per_page: 100,
}

base.github.repos.getFromOrg(payload, function(err, repositories) {
Expand Down
2 changes: 1 addition & 1 deletion lib/cmds/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ Repo.prototype.list = function(user, opt_callback) {
payload = {
type: options.type,
user: user,
per_page: 1000,
per_page: 100,
}

if (options.organization) {
Expand Down

0 comments on commit e108274

Please sign in to comment.