commit d94adff48b1882f9078b0ae94b677be5d29e5fd2
parent b8c34efe3399b0786a0e00012cfa3a05a4aa4654
Author: casswedson <58050969+casswedson@users.noreply.github.com>
Date: Sun, 18 Feb 2024 06:29:07 -0500
ci(labeler_issue): split on word boundaries
Splitting it on word boundaries rather than only spaces allows for better
detection. The issue labeler previously didn't catch titles such as
`treesitter: noisy "Invalid node type" error`.
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/labeler_issue.yml b/.github/workflows/labeler_issue.yml
@@ -13,7 +13,7 @@ jobs:
with:
script: |
const title = context.payload.issue.title;
- const titleSplit = title.split(/\s+/).map(e => e.toLowerCase());
+ const titleSplit = title.split(/\b/).map(e => e.toLowerCase());
const keywords = ['api', 'treesitter', 'ui', 'lsp'];
var match = new Set();
for (const keyword of keywords) {