Workflow Update

This commit is contained in:
Michel Roegl-Brunner 2025-03-24 13:10:18 +01:00
parent cd121a567d
commit 9eb1d0b29a

View File

@ -139,26 +139,25 @@ jobs:
} }
} }
// Find matching category
for (const category of categorizedPRs) { for (const category of categorizedPRs) {
if (category.labels.some(label => prLabels.includes(label))) { if (category.labels.some(label => prLabels.includes(label)) && !category.labels.some(label => prLabels.includes("new script"))) {
// Check if PR belongs to a subcategory
if (category.subCategories && category.subCategories.length > 0) { if (category.subCategories && category.subCategories.length > 0) {
const subCategory = category.subCategories.find(sub => const subCategory = category.subCategories.find(sub =>
sub.labels.some(label => prLabels.includes(label)) sub.labels.some(label => prLabels.includes(label))
); );
if (subCategory) { if (subCategory) {
if(!category.labels.includes("new script")){
subCategory.notes.push(prNote); subCategory.notes.push(prNote);
}
} else { } else {
category.notes.push(prNote); category.notes.push(prNote);
} }
} else { } else {
category.notes.push(prNote); category.notes.push(prNote);
} }
} }else if (category.labels.includes("new script")) {
if (prLabels.includes("new script")) {
category.notes.push(prNote);
}
} }
} }