From 7945b07fe6c7b412b558c5d311cef5773d3f3416 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 24 Mar 2025 13:32:56 +0100 Subject: [PATCH] Workflow Update --- .github/workflows/changelog-pr.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index 9a83aa9..86241ad 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -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); } + } } }