summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Flo Edelmann <git@flo-edelmann.de> 2023-11-09 12:18:19 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-09 19:18:19 +0800
commit831e9a9159d9f7ab94b543f606e94f30609291ea (patch)
tree087577e3752c6e4aed60b6f3d719f89a737d19f7
parentc325ba2031bd10746a854fa0607269b48855ed35 (diff)
downloadrefined-github-831e9a9159d9f7ab94b543f606e94f30609291ea.tar.gz
refined-github-831e9a9159d9f7ab94b543f606e94f30609291ea.tar.zst
refined-github-831e9a9159d9f7ab94b543f606e94f30609291ea.zip
`bugs-tab` - Support the labels `triage:bug` and `triage/bug` (#7041)
-rw-r--r--source/github-helpers/bugs-label.test.ts2
-rw-r--r--source/github-helpers/bugs-label.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/github-helpers/bugs-label.test.ts b/source/github-helpers/bugs-label.test.ts
index 34e65e1a..e5ab0bd9 100644
--- a/source/github-helpers/bugs-label.test.ts
+++ b/source/github-helpers/bugs-label.test.ts
@@ -11,6 +11,8 @@ type/bug
type:bug
kind/bug
kind:bug
+triage/bug
+triage:bug
:bug:bug
:bug: bug
🐛bug
diff --git a/source/github-helpers/bugs-label.ts b/source/github-helpers/bugs-label.ts
index 1d8a9f51..82313154 100644
--- a/source/github-helpers/bugs-label.ts
+++ b/source/github-helpers/bugs-label.ts
@@ -1,4 +1,4 @@
-const supportedLabels = /^(bug|bug-?fix|confirmed-bug|type[:/]bug|kind[:/]bug|(:[\w-]+:|\p{Emoji})bug)$/iu;
+const supportedLabels = /^(bug|bug-?fix|confirmed-bug|(type|kind|triage)[:/]bug|(:[\w-]+:|\p{Emoji})bug)$/iu;
export default function isBugLabel(label: string): boolean {
return supportedLabels.test(label.replaceAll(/\s/g, ''));
}