summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-03-29 18:59:42 -0400
committerGitHub <noreply@github.com>2026-03-29 18:59:42 -0400
commit844f2d2e131340df412fe266502b2e508bc7012a (patch)
tree5641d2f3d357982e6794f5cf3504f7659e35908a /scripts/lintcommit.lua
parent83f0dd638c1d84c31026d15a1c481a2b2a3db671 (diff)
ci(lintcommit): allow "NVIM vx.y.z" commit message #38563
Diffstat (limited to 'scripts/lintcommit.lua')
-rw-r--r--scripts/lintcommit.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lintcommit.lua b/scripts/lintcommit.lua
index b8f0a09026..c04f2a0c55 100644
--- a/scripts/lintcommit.lua
+++ b/scripts/lintcommit.lua
@@ -49,6 +49,11 @@ local function validate_commit(commit_message)
return nil
end
+ -- Skip release commits.
+ if commit_message:match('^NVIM v%d+%.%d+%.%d+') then
+ return nil
+ end
+
-- Check that message isn't too long.
if commit_message:len() > 80 then
return [[Commit message is too long, a maximum of 80 characters is allowed.]]
@@ -212,6 +217,7 @@ function M._test()
local test_cases = {
['ci: normal message'] = true,
['build: normal message'] = true,
+ ['build: version bump'] = true,
['docs: normal message'] = true,
['feat: normal message'] = true,
['fix: normal message'] = true,
@@ -224,6 +230,7 @@ function M._test()
['ci(tui)!: message with scope and breaking change'] = true,
['vim-patch:8.2.3374: Pyret files are not recognized (#15642)'] = true,
['vim-patch:8.1.1195,8.2.{3417,3419}'] = true,
+ ['NVIM v0.12.0'] = true,
['revert: "ci: use continue-on-error instead of "|| true""'] = true,
['fixup'] = false,
['fixup: commit message'] = false,