- introduce capability to have a category for all uncategorized elements (e.g. no matched label, and not specifically ignored)

This commit is contained in:
Mike Penz
2020-11-04 14:16:14 +01:00
parent 61f9201ca0
commit db78e9819a
5 changed files with 53 additions and 4 deletions
+9 -2
View File
@@ -64,11 +64,18 @@ export function buildChangelog(
if (haveCommonElements(category.labels, pr.labels)) {
pullRequests.push(body)
matched = true
break
}
}
if (!matched) {
// we allow to have pull requests included in an "uncategorized" category
for (const [category, pullRequests] of categorized) {
if (category.labels.length == 0) {
pullRequests.push(body)
break
}
}
uncategorizedPrs.push(body)
} else {
categorizedPrs.push(body)