- 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
Generated Vendored
+7 -1
View File
@@ -1027,10 +1027,16 @@ function buildChangelog(prs, config, options) {
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 {
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long