mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
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>
This commit is contained in:
parent
b8c34efe33
commit
d94adff48b
2
.github/workflows/labeler_issue.yml
vendored
2
.github/workflows/labeler_issue.yml
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user