diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-31 08:54:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 08:54:35 +0800 |
commit | 68e2d722959dadc596edb9320bcdede38659db07 (patch) | |
tree | be80aab9b347f9be00e9469a6a96f538ccf57148 | |
parent | 3913ebbfcde7d327dd6f1d85e30ce114a9e8193e (diff) | |
download | rneovim-68e2d722959dadc596edb9320bcdede38659db07.tar.gz rneovim-68e2d722959dadc596edb9320bcdede38659db07.tar.bz2 rneovim-68e2d722959dadc596edb9320bcdede38659db07.zip |
ci(issue-open-check): don't add "doc" label
"doc" label doesn't exist and mentioning "doc" doesn't mean anything.
-rw-r--r-- | .github/workflows/issue-open-check.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/issue-open-check.yml b/.github/workflows/issue-open-check.yml index 2471670dc6..aef1a90c38 100644 --- a/.github/workflows/issue-open-check.yml +++ b/.github/workflows/issue-open-check.yml @@ -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, |