From 926e8070206a93ea2f6dc79b1da4075fafaf7e98 Mon Sep 17 00:00:00 2001 From: Sven van Ginkel Date: Mon, 14 Jul 2025 20:03:56 +0200 Subject: [PATCH] [Chore] Fix CI labels (#964) --- .github/workflows/label-from-dropdown.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/label-from-dropdown.yml b/.github/workflows/label-from-dropdown.yml index f0cb9e5..871ceb2 100644 --- a/.github/workflows/label-from-dropdown.yml +++ b/.github/workflows/label-from-dropdown.yml @@ -14,8 +14,6 @@ jobs: uses: actions/github-script@v7 with: script: | - const areaLabels = ['Metrics', 'Charts & Visualization', 'Settings & Configuration', 'Notifications & Alerts', 'Authentication', 'Installation', 'Performance', 'UI / UX', 'Other']; - const componentLabels = ['CPU', 'Memory', 'Storage', 'Network', 'Containers', 'GPU', 'Sensors', 'Other']; const issueNumber = context.issue.number; const owner = context.repo.owner; @@ -37,14 +35,14 @@ jobs: } // Extract dropdown selections - const product = extractSectionValue('Product'); - const area = extractSectionValue('Area'); + const category = extractSectionValue('Category'); + const metrics = extractSectionValue('Affected Metrics'); const component = extractSectionValue('Component'); // Build labels to add let labelsToAdd = []; - if (product) labelsToAdd.push(product); - if (area) labelsToAdd.push(area); + if (category) labelsToAdd.push(category); + if (metrics) labelsToAdd.push(metrics); if (component) labelsToAdd.push(component); // Get existing labels in the repo