mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix(lint): use tbl_contains
This commit is contained in:
parent
c15939c1f7
commit
5465adcbab
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user