mirror of
https://github.com/fankes/beszel.git
synced 2025-10-18 17:29:28 +08:00
[Chore] Fix CI labels (#964)
This commit is contained in:
10
.github/workflows/label-from-dropdown.yml
vendored
10
.github/workflows/label-from-dropdown.yml
vendored
@@ -14,8 +14,6 @@ jobs:
|
|||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
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 issueNumber = context.issue.number;
|
||||||
const owner = context.repo.owner;
|
const owner = context.repo.owner;
|
||||||
@@ -37,14 +35,14 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract dropdown selections
|
// Extract dropdown selections
|
||||||
const product = extractSectionValue('Product');
|
const category = extractSectionValue('Category');
|
||||||
const area = extractSectionValue('Area');
|
const metrics = extractSectionValue('Affected Metrics');
|
||||||
const component = extractSectionValue('Component');
|
const component = extractSectionValue('Component');
|
||||||
|
|
||||||
// Build labels to add
|
// Build labels to add
|
||||||
let labelsToAdd = [];
|
let labelsToAdd = [];
|
||||||
if (product) labelsToAdd.push(product);
|
if (category) labelsToAdd.push(category);
|
||||||
if (area) labelsToAdd.push(area);
|
if (metrics) labelsToAdd.push(metrics);
|
||||||
if (component) labelsToAdd.push(component);
|
if (component) labelsToAdd.push(component);
|
||||||
|
|
||||||
// Get existing labels in the repo
|
// Get existing labels in the repo
|
||||||
|
Reference in New Issue
Block a user