From 9eb1d0b29a7b98b8e3424301b56ff6a183a11225 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 24 Mar 2025 13:10:18 +0100 Subject: [PATCH] Workflow Update --- .github/workflows/changelog-pr.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index f47ab20..a178eef 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -139,26 +139,25 @@ jobs: } } - // Find matching category for (const category of categorizedPRs) { - if (category.labels.some(label => prLabels.includes(label))) { - // Check if PR belongs to a subcategory + if (category.labels.some(label => prLabels.includes(label)) && !category.labels.some(label => prLabels.includes("new script"))) { 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 { category.notes.push(prNote); } - } + }else if (category.labels.includes("new script")) { + if (prLabels.includes("new script")) { + category.notes.push(prNote); + } } }