aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-04-14 13:27:46 +0100
committerGitHub <noreply@github.com>2023-04-14 13:27:46 +0100
commit789654accd590318a56a115cd086441893e4473a (patch)
tree620d871d38d46e6d4380dab4009879e54be2ae71 /scripts/lintcommit.lua
parent90efe85a99c7986acccc8af370cfb179ae18aeff (diff)
parent3d29424fb9960085f09f7e322abf204eab9287b9 (diff)
downloadrneovim-789654accd590318a56a115cd086441893e4473a.tar.gz
rneovim-789654accd590318a56a115cd086441893e4473a.tar.bz2
rneovim-789654accd590318a56a115cd086441893e4473a.zip
Merge pull request #22869 from lewis6991/refactor/unitannot
refactor(unit): add type annotations
Diffstat (limited to 'scripts/lintcommit.lua')
-rw-r--r--scripts/lintcommit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lintcommit.lua b/scripts/lintcommit.lua
index 7f3dffd22c..f9a4631b7e 100644
--- a/scripts/lintcommit.lua
+++ b/scripts/lintcommit.lua
@@ -88,7 +88,7 @@ local function validate_commit(commit_message)
-- Check if type is correct
local type = vim.split(before_colon, "(", {plain = true})[1]
local allowed_types = {'build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'test', 'vim-patch'}
- if not vim.list_contains(allowed_types, type) then
+ if not vim.tbl_contains(allowed_types, type) then
return string.format(
[[Invalid commit type "%s". Allowed types are:
%s.