Workflow Update

This commit is contained in:
Michel Roegl-Brunner 2025-03-24 13:32:56 +01:00
parent 155319a752
commit 7945b07fe6

View File

@ -140,26 +140,23 @@ jobs:
}
for (const category of categorizedPRs) {
if (category.labels.some(label => prLabels.includes(label))){
if (category.labels.some(label => prLabels.includes(label))) {
if (category.subCategories && category.subCategories.length > 0) {
const subCategory = category.subCategories.find(sub =>
sub.labels.some(label => prLabels.includes(label))
);
if (subCategory) {
if(!category.labels.includes("new script")){
subCategory.notes.push(prNote);
}
} else {
category.notes.push(prNote);
}
} else {
if(!category.labels.includes("new script")) {
category.notes.push(prNote);
}
}
}else if (category.labels.includes("new script")) {
if (prLabels.includes("new script")) {
category.notes.push(prNote);
}
}
}
}