- introduce capability to have a category for all uncategorized elements (e.g. no matched label, and not specifically ignored)
This commit is contained in:
+9
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user