diff options
author | casswedson <58050969+casswedson@users.noreply.github.com> | 2024-02-18 06:29:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 12:29:07 +0100 |
commit | d94adff48b1882f9078b0ae94b677be5d29e5fd2 (patch) | |
tree | bf01f3d407ae540dd54a8276db04ac032ad3ec79 | |
parent | b8c34efe3399b0786a0e00012cfa3a05a4aa4654 (diff) | |
download | rneovim-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.yml | 2 |
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) { |