aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcasswedson <58050969+casswedson@users.noreply.github.com>2024-02-18 06:29:07 -0500
committerGitHub <noreply@github.com>2024-02-18 12:29:07 +0100
commitd94adff48b1882f9078b0ae94b677be5d29e5fd2 (patch)
treebf01f3d407ae540dd54a8276db04ac032ad3ec79
parentb8c34efe3399b0786a0e00012cfa3a05a4aa4654 (diff)
downloadrneovim-d94adff48b1882f9078b0ae94b677be5d29e5fd2.tar.gz
rneovim-d94adff48b1882f9078b0ae94b677be5d29e5fd2.tar.bz2
rneovim-d94adff48b1882f9078b0ae94b677be5d29e5fd2.zip
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>
-rw-r--r--.github/workflows/labeler_issue.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/labeler_issue.yml b/.github/workflows/labeler_issue.yml
index 0da4c0f707..deba3cd5a5 100644
--- 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) {