- add ability to provide key for cateogry, used for json ('categorized') output
This commit is contained in:
+1
-1
@@ -1831,7 +1831,7 @@ 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 }), {});
|
||||
const transformedCategorized = Array.from(categorized).reduce((obj, [key, value]) => Object.assign(obj, { [key.key || key.title]: value }), {});
|
||||
core.setOutput('categorized', JSON.stringify(transformedCategorized));
|
||||
// construct final changelog
|
||||
let changelog = '';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user