From a45dd69ba5d063c5892dba73cd1ec6d75cf61fba Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 24 Mar 2025 13:59:25 +0100 Subject: [PATCH] Workflow Update --- .github/changelog-pr-config.json | 41 ++++++++++++++++++++--------- .github/workflows/changelog-pr.yaml | 1 + 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.github/changelog-pr-config.json b/.github/changelog-pr-config.json index 2c62aa3f0..565e62226 100644 --- a/.github/changelog-pr-config.json +++ b/.github/changelog-pr-config.json @@ -10,17 +10,22 @@ { "title": "🐞 Bug Fixes", "labels": ["bugfix"], - "notes" : [] + "notes": [] }, { "title": "✨ New Features", "labels": ["feature"], - "notes" : [] + "notes": [] }, { "title": "💥 Breaking Changes", "labels": ["breaking change"], - "notes" : [] + "notes": [] + }, + { + "title": "🔧 Refactor", + "labels": ["refactor"], + "notes": [] } ] }, @@ -31,32 +36,42 @@ { "title": "🐞 Bug Fixes", "labels": ["bugfix"], - "notes" : [] + "notes": [] }, { "title": "✨ New Features", "labels": ["feature"], - "notes" : [] + "notes": [] }, { "title": "💥 Breaking Changes", "labels": ["breaking change"], - "notes" : [] + "notes": [] }, { "title": "📡 API", "labels": ["api"], - "notes" : [] + "notes": [] }, { "title": "💾 Core", "labels": ["core"], - "notes" : [] + "notes": [] }, { "title": "📂 Github", "labels": ["github"], - "notes" : [] + "notes": [] + }, + { + "title": "📝 Documentation", + "labels": ["documentation"], + "notes": [] + }, + { + "title": "🔧 Refactor", + "labels": ["refactor"], + "notes": [] } ] }, @@ -67,22 +82,22 @@ { "title": "🐞 Bug Fixes", "labels": ["bugfix"], - "notes" : [] + "notes": [] }, { "title": "✨ New Features", "labels": ["feature"], - "notes" : [] + "notes": [] }, { "title": "💥 Breaking Changes", "labels": ["breaking change"], - "notes" : [] + "notes": [] }, { "title": "📝 Script Information", "labels": ["json"], - "notes" : [] + "notes": [] } ] }, diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index dadea5293..7de3382ee 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -138,6 +138,7 @@ jobs: for (const category of categorizedPRs) { console.log("Category: ", category); + 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 =>