Skip to content

Commit

Permalink
fix: increase page size for PR files request (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
DekusDenial authored Jul 21, 2020
1 parent bbdfccc commit 543fcc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const MATCH_COMPONENT_USER_NAME = 2;
const MATCH_COMPONENT_HOST_NAME = 1;
const WEBHOOK_PAGE_SIZE = 30;
const BRANCH_PAGE_SIZE = 100;
const PR_FILES_PAGE_SIZE = 100;
const POLLING_INTERVAL = 0.2;
const POLLING_MAX_ATTEMPT = 10;
const STATE_MAP = {
Expand Down Expand Up @@ -1120,7 +1121,8 @@ class GithubScm extends Scm {
params: {
owner: scmInfo.owner,
repo: scmInfo.repo,
number: prNum
number: prNum,
per_page: PR_FILES_PAGE_SIZE
}
});

Expand Down

0 comments on commit 543fcc9

Please sign in to comment.