- introduce proper configuration for fetchReviews

- drop no longer needed limiting of PRs
- retrieve state from PR review comment
This commit is contained in:
Mike Penz
2022-12-09 13:29:06 +00:00
committed by GitHub
parent 2fe056f840
commit 24f4e30f9f
12 changed files with 81 additions and 40 deletions
+10
View File
@@ -20,6 +20,7 @@ it('Should have empty changelog (tags)', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -40,6 +41,7 @@ it('Should match generated changelog (tags)', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -65,6 +67,7 @@ it('Should match generated changelog (refs)', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -98,6 +101,7 @@ it('Should match generated changelog and replace all occurrences (refs)', async
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -133,6 +137,7 @@ it('Should match ordered ASC', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -153,6 +158,7 @@ it('Should match ordered DESC', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -173,6 +179,7 @@ it('Should match ordered by title ASC', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -195,6 +202,7 @@ it('Should match ordered by title DESC', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -217,6 +225,7 @@ it('Should ignore PRs not merged into develop branch', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -237,6 +246,7 @@ it('Should ignore PRs not merged into main branch', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
+14
View File
@@ -18,6 +18,7 @@ it('Should match generated changelog (unspecified fromTag)', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -47,6 +48,7 @@ it('Should match generated changelog (unspecified tags)', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -71,6 +73,7 @@ it('Should use empty placeholder', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -95,6 +98,7 @@ it('Should fill empty placeholders', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -121,6 +125,7 @@ it('Should fill `template` placeholders', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -147,6 +152,7 @@ it('Should fill `template` placeholders, ignore', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -173,6 +179,7 @@ it('Uncategorized category', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false,
configuration
)
@@ -199,6 +206,7 @@ it('Verify commit based changelog', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
true,
configuration
)
@@ -225,6 +233,7 @@ it('Verify commit based changelog, with emoji categorisation', async () => {
false,
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
true,
configuration
)
@@ -251,6 +260,7 @@ it('Verify default inclusion of open PRs', async () => {
false, // ignorePrePrelease
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false, // commitMode
configuration // configuration
)
@@ -277,6 +287,7 @@ it('Verify custom categorisation of open PRs', async () => {
false, // ignorePrePrelease
false, // enable to fetch reviewers
false, // enable to fetch tag release information
false, // enable to fetch reviews
false, // commitMode
configuration // configuration
)
@@ -303,6 +314,7 @@ it('Verify reviewers who approved are fetched and also release information', asy
false, // ignorePrePrelease
true, // enable to fetch reviewers
true, // enable to fetch tag release information
false, // enable to fetch reviews
false, // commitMode
configuration // configuration
)
@@ -330,6 +342,7 @@ it('Fetch release information', async () => {
false, // ignorePrePrelease
false, // enable to fetch reviewers
true, // enable to fetch tag release information
false, // enable to fetch reviews
false, // commitMode
configuration // configuration
)
@@ -355,6 +368,7 @@ it('Fetch release information for non existing tag / release', async () => {
false, // ignorePrePrelease
false, // enable to fetch reviewers
true, // enable to fetch tag release information
false, // enable to fetch reviews
false, // commitMode
configuration // configuration
)
+14
View File
@@ -140,6 +140,7 @@ it('Extract label from title, combined regex', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -169,6 +170,7 @@ it('Extract label from title and body, combined regex', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -201,6 +203,7 @@ it('Extract label from title, split regex', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -233,6 +236,7 @@ it('Extract label from title, match', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -260,6 +264,7 @@ it('Extract label from title, match multiple', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -288,6 +293,7 @@ it('Extract label from title, match multiple, custon non matching label', async
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration
})
@@ -403,6 +409,7 @@ it('Match multiple labels exhaustive for category', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration: customConfig
})
@@ -429,6 +436,7 @@ it('Deduplicate duplicated PRs', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration: customConfig
})
@@ -456,6 +464,7 @@ it('Deduplicate duplicated PRs DESC', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration: customConfig
})
@@ -488,6 +497,7 @@ it('Use empty_content for empty category', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration: customConfig
})
@@ -511,6 +521,7 @@ it('Commit SHA-1 in commitMode', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: true,
configuration: customConfig
})
@@ -531,6 +542,7 @@ it('Release Diff', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: true,
fetchReviews: false,
commitMode: true,
configuration: customConfig
})
@@ -570,6 +582,7 @@ it('Use exclude labels to not include a PR within a category.', async () => {
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration: customConfig
})
@@ -628,6 +641,7 @@ it('Extract custom placeholder from PR body and replace in global template', asy
failOnError: false,
fetchReviewers: false,
fetchReleaseInformation: false,
fetchReviews: false,
commitMode: false,
configuration: customConfig
})