- include new categorized output which contains a serialized JSON string with the categorized pull requests
This commit is contained in:
@@ -179,6 +179,10 @@ export function buildChangelog(diffInfo: DiffInfo, prs: PullRequestInfo[], optio
|
||||
}
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user