- 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
+4 -3
View File
@@ -183,9 +183,10 @@ export function buildChangelog(
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`)