build(lint): scope can't be ci, use it as a type instead

This commit is contained in:
Yi Ming 2024-11-18 23:00:16 +08:00
parent 263cbcd80b
commit 180ca99dbe

View File

@ -102,6 +102,10 @@ local function validate_commit(commit_message)
return [[Scope can't be empty]] return [[Scope can't be empty]]
end end
if scope == 'ci' then
return [[Scope can't be "ci", use it as a type instead]]
end
if vim.startswith(scope, 'nvim_') then if vim.startswith(scope, 'nvim_') then
return [[Scope should be "api" instead of "nvim_..."]] return [[Scope should be "api" instead of "nvim_..."]]
end end