- include new categorized output which contains a serialized JSON string with the categorized pull requests

This commit is contained in:
Mike Penz
2023-05-19 16:22:11 +00:00
committed by GitHub
parent fa8a70f37a
commit be9b53104e
4 changed files with 9 additions and 2 deletions
Generated Vendored
+3
View File
@@ -1830,6 +1830,9 @@ function buildChangelog(diffInfo, prs, options) {
}
}
core.info(`️ Ordered all pull requests into ${categories.length} categories`);
// serialize and provide the categorized content as json
const transformedCategorized = Array.from(categorized).reduce((obj, [key, value]) => Object.assign(obj, { [key.title]: value }), {});
core.setOutput('categorized', JSON.stringify(transformedCategorized));
// construct final changelog
let changelog = '';
for (const [category, pullRequests] of categorized) {
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long