- 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:
+5
-2
@@ -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`);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user