- optimize performance by respecting the max_pull_request setting for fetching PRs via the API already

This commit is contained in:
Mike Penz
2022-12-09 13:03:23 +00:00
committed by GitHub
parent 5c9a6d23c2
commit 2fe056f840
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -520,7 +520,7 @@ class PullRequests {
repo,
state: 'closed',
sort: 'merged',
per_page: '100',
per_page: `${Math.min(100, maxPullRequests)}`,
direction: 'desc'
});
try {
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -72,7 +72,7 @@ export class PullRequests {
repo,
state: 'closed',
sort: 'merged',
per_page: '100',
per_page: `${Math.min(100, maxPullRequests)}`,
direction: 'desc'
})