chore(workflow): update label metadata

This commit is contained in:
Ly-sec
2026-05-06 23:48:34 +02:00
parent 3bbf31945d
commit eb2b53ddaa
+5 -3
View File
@@ -23,12 +23,12 @@ jobs:
const extractValue = (heading) => { const extractValue = (heading) => {
const escapedHeading = heading.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); const escapedHeading = heading.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
const match = body.match(new RegExp(`### ${escapedHeading}\\s*\\n+([^\\n\\r]+)`, "i")); const match = body.match(new RegExp(`^\\s*(?:###\\s*)?${escapedHeading}\\s*\\r?\\n+([^\\n\\r]+)`, "im"));
return match ? match[1].trim() : null; return match ? match[1].trim() : null;
}; };
const compositorValue = extractValue("Desktop environment / compositor"); const compositorValue = extractValue("Compositor");
const distributionValue = extractValue("Distribution family"); const distributionValue = extractValue("Distribution");
const compositorLabelMap = { const compositorLabelMap = {
"Niri": "compositor:niri", "Niri": "compositor:niri",
@@ -36,6 +36,7 @@ jobs:
"Sway": "compositor:sway", "Sway": "compositor:sway",
"Scroll": "compositor:scroll", "Scroll": "compositor:scroll",
"Labwc": "compositor:labwc", "Labwc": "compositor:labwc",
"Mango": "compositor:mango",
"MangoWC": "compositor:mango", "MangoWC": "compositor:mango",
"Other": "compositor:other" "Other": "compositor:other"
}; };
@@ -47,6 +48,7 @@ jobs:
"NixOS": "distro:nixos", "NixOS": "distro:nixos",
"openSUSE-based": "distro:opensuse", "openSUSE-based": "distro:opensuse",
"Gentoo-based": "distro:gentoo", "Gentoo-based": "distro:gentoo",
"Void": "distro:void",
"Void-based": "distro:void", "Void-based": "distro:void",
"Other": "distro:other" "Other": "distro:other"
}; };