mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
chore(workflow): update label metadata
This commit is contained in:
@@ -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"
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user