Merge pull request #155 from mikepenz/fix/154
Enhance PR API page size | Adjust default back track time for PRs to 365 days
This commit is contained in:
@@ -166,7 +166,7 @@ This configuration is a `.json` file in the following format.
|
|||||||
],
|
],
|
||||||
"max_tags_to_fetch": 200,
|
"max_tags_to_fetch": 200,
|
||||||
"max_pull_requests": 200,
|
"max_pull_requests": 200,
|
||||||
"max_back_track_time_days": 90,
|
"max_back_track_time_days": 365,
|
||||||
"exclude_merge_branches": [
|
"exclude_merge_branches": [
|
||||||
"Owner/qa"
|
"Owner/qa"
|
||||||
],
|
],
|
||||||
|
|||||||
+2
-1
@@ -125,7 +125,7 @@ exports.DefaultConfiguration = void 0;
|
|||||||
exports.DefaultConfiguration = {
|
exports.DefaultConfiguration = {
|
||||||
max_tags_to_fetch: 200,
|
max_tags_to_fetch: 200,
|
||||||
max_pull_requests: 200,
|
max_pull_requests: 200,
|
||||||
max_back_track_time_days: 90,
|
max_back_track_time_days: 365,
|
||||||
exclude_merge_branches: [],
|
exclude_merge_branches: [],
|
||||||
sort: 'ASC',
|
sort: 'ASC',
|
||||||
template: '${{CHANGELOG}}',
|
template: '${{CHANGELOG}}',
|
||||||
@@ -446,6 +446,7 @@ class PullRequests {
|
|||||||
repo,
|
repo,
|
||||||
state: 'closed',
|
state: 'closed',
|
||||||
sort: 'updated',
|
sort: 'updated',
|
||||||
|
per_page: '100',
|
||||||
direction: 'desc'
|
direction: 'desc'
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -30,7 +30,7 @@ export interface TagResolver {
|
|||||||
export const DefaultConfiguration: Configuration = {
|
export const DefaultConfiguration: Configuration = {
|
||||||
max_tags_to_fetch: 200, // the amount of tags to fetch from the github API
|
max_tags_to_fetch: 200, // the amount of tags to fetch from the github API
|
||||||
max_pull_requests: 200, // the amount of pull requests to process
|
max_pull_requests: 200, // the amount of pull requests to process
|
||||||
max_back_track_time_days: 90, // allow max of 90 days to check up on pull requests
|
max_back_track_time_days: 365, // allow max of 365 days back to check up on pull requests
|
||||||
exclude_merge_branches: [], // branches to exclude from counting as PRs (e.g. YourOrg/qa, YourOrg/main)
|
exclude_merge_branches: [], // branches to exclude from counting as PRs (e.g. YourOrg/qa, YourOrg/main)
|
||||||
sort: 'ASC', // sorting order for filling the changelog (ASC or DESC) supported
|
sort: 'ASC', // sorting order for filling the changelog (ASC or DESC) supported
|
||||||
template: '${{CHANGELOG}}', // the global template to host the changelog
|
template: '${{CHANGELOG}}', // the global template to host the changelog
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ export class PullRequests {
|
|||||||
repo,
|
repo,
|
||||||
state: 'closed',
|
state: 'closed',
|
||||||
sort: 'updated',
|
sort: 'updated',
|
||||||
|
per_page: '100',
|
||||||
direction: 'desc'
|
direction: 'desc'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user