Skip to content

Commit eb2b53d

Browse files
committed
chore(workflow): update label metadata
1 parent 3bbf319 commit eb2b53d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/label-issue-metadata.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ jobs:
2323
2424
const extractValue = (heading) => {
2525
const escapedHeading = heading.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
26-
const match = body.match(new RegExp(`### ${escapedHeading}\\s*\\n+([^\\n\\r]+)`, "i"));
26+
const match = body.match(new RegExp(`^\\s*(?:###\\s*)?${escapedHeading}\\s*\\r?\\n+([^\\n\\r]+)`, "im"));
2727
return match ? match[1].trim() : null;
2828
};
2929
30-
const compositorValue = extractValue("Desktop environment / compositor");
31-
const distributionValue = extractValue("Distribution family");
30+
const compositorValue = extractValue("Compositor");
31+
const distributionValue = extractValue("Distribution");
3232
3333
const compositorLabelMap = {
3434
"Niri": "compositor:niri",
3535
"Hyprland": "compositor:hyprland",
3636
"Sway": "compositor:sway",
3737
"Scroll": "compositor:scroll",
3838
"Labwc": "compositor:labwc",
39+
"Mango": "compositor:mango",
3940
"MangoWC": "compositor:mango",
4041
"Other": "compositor:other"
4142
};
@@ -47,6 +48,7 @@ jobs:
4748
"NixOS": "distro:nixos",
4849
"openSUSE-based": "distro:opensuse",
4950
"Gentoo-based": "distro:gentoo",
51+
"Void": "distro:void",
5052
"Void-based": "distro:void",
5153
"Other": "distro:other"
5254
};

0 commit comments

Comments
 (0)