Merge branch 'ggiambo-filterEmptyCategoryTitle' into develop

This commit is contained in:
Mike Penz
2023-02-18 11:51:43 +00:00
committed by GitHub
3 changed files with 13 additions and 5 deletions
Generated Vendored
+6 -2
View File
@@ -1850,14 +1850,18 @@ function buildChangelog(diffInfo, prs, options) {
let changelog = '';
for (const [category, pullRequests] of categorized) {
if (pullRequests.length > 0) {
changelog = `${changelog + category.title}\n\n`;
if (category.title) {
changelog = `${changelog + category.title}\n\n`;
}
for (const pr of pullRequests) {
changelog = `${changelog + pr}\n`;
}
changelog = `${changelog}\n`; // add space between sections
}
else if (category.empty_content !== undefined) {
changelog = `${changelog + category.title}\n\n`;
if (category.title) {
changelog = `${changelog + category.title}\n\n`;
}
changelog = `${changelog + category.empty_content}\n\n`;
}
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+6 -2
View File
@@ -173,14 +173,18 @@ export function buildChangelog(diffInfo: DiffInfo, prs: PullRequestInfo[], optio
let changelog = ''
for (const [category, pullRequests] of categorized) {
if (pullRequests.length > 0) {
changelog = `${changelog + category.title}\n\n`
if (category.title) {
changelog = `${changelog + category.title}\n\n`
}
for (const pr of pullRequests) {
changelog = `${changelog + pr}\n`
}
changelog = `${changelog}\n` // add space between sections
} else if (category.empty_content !== undefined) {
changelog = `${changelog + category.title}\n\n`
if (category.title) {
changelog = `${changelog + category.title}\n\n`
}
changelog = `${changelog + category.empty_content}\n\n`
}
}