mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
ci(issue-open-check): don't add "doc" label
"doc" label doesn't exist and mentioning "doc" doesn't mean anything.
This commit is contained in:
8
.github/workflows/issue-open-check.yml
vendored
8
.github/workflows/issue-open-check.yml
vendored
@ -17,14 +17,14 @@ jobs:
|
||||
script: |
|
||||
const title = context.payload.issue.title;
|
||||
const titleSplit = title.split(/\s+/).map(e => e.toLowerCase());
|
||||
const keywords = ['api', 'treesitter', 'ui', 'lsp', 'doc'];
|
||||
const keywords = ['api', 'treesitter', 'ui', 'lsp'];
|
||||
var match = new Set();
|
||||
for(const keyword of keywords) {
|
||||
if(titleSplit.includes(keyword)) {
|
||||
for (const keyword of keywords) {
|
||||
if (titleSplit.includes(keyword)) {
|
||||
match.add(keyword)
|
||||
}
|
||||
}
|
||||
if(match.size !== 0){
|
||||
if (match.size !== 0) {
|
||||
github.rest.issues.addLabels({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
Reference in New Issue
Block a user