summaryrefslogtreecommitdiff
path: root/source/features/bugs-tab.tsx
diff options
context:
space:
mode:
authorGravatar Ole-Martin Bratteng <1681525+omBratteng@users.noreply.github.com> 2021-08-13 14:49:08 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-13 08:49:08 -0400
commitb2c6300972c70d5eadd287b0d0d4af9e98b66fa9 (patch)
tree2af8fccf24213b423844d0d6faf4e0b003b1f352 /source/features/bugs-tab.tsx
parent0a6f0571619ce6b84dad4645eebcb6b9213a1800 (diff)
downloadrefined-github-b2c6300972c70d5eadd287b0d0d4af9e98b66fa9.tar.gz
refined-github-b2c6300972c70d5eadd287b0d0d4af9e98b66fa9.tar.zst
refined-github-b2c6300972c70d5eadd287b0d0d4af9e98b66fa9.zip
Support `kind:bug` label in `bugs-tab` (#4650)
Diffstat (limited to '')
-rw-r--r--source/features/bugs-tab.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/bugs-tab.tsx b/source/features/bugs-tab.tsx
index f7e2e5c6..f59a2b40 100644
--- a/source/features/bugs-tab.tsx
+++ b/source/features/bugs-tab.tsx
@@ -11,7 +11,7 @@ import {getRepo} from '../github-helpers';
import SearchQuery from '../github-helpers/search-query';
import abbreviateNumber from '../helpers/abbreviate-number';
-const supportedLabels = /^(bug|confirmed-bug|type:bug|:\w+:bug)$/;
+const supportedLabels = /^(bug|confirmed-bug|type:bug|kind:bug|:\w+:bug)$/;
const getBugLabelCacheKey = (): string => 'bugs-label:' + getRepo()!.nameWithOwner;
const getBugLabel = async (): Promise<string | undefined> => cache.get<string>(getBugLabelCacheKey());
const isBugLabel = (label: string): boolean => supportedLabels.test(label.replace(/\s/g, ''));