- introduce new configuration option, allowing to provide an empty_content for categories matching no PRs

- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/804
This commit is contained in:
Mike Penz
2022-07-08 10:40:47 +02:00
parent 9628cd4fe0
commit 89475f1193
6 changed files with 46 additions and 7 deletions
Generated Vendored
+5 -2
View File
@@ -1487,8 +1487,11 @@ function buildChangelog(prs, options) {
for (const pr of pullRequests) {
changelog = `${changelog + pr}\n`;
}
// add space between
changelog = `${changelog}\n`;
changelog = `${changelog}\n`; // add space between sections
}
else if (category.empty_content !== undefined) {
changelog = `${changelog + category.title}\n\n`;
changelog = `${changelog + category.empty_content}\n\n`;
}
}
core.info(`✒️ Wrote ${categorizedPrs.length} categorized pull requests down`);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long