summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
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
parent83f0dd638c1d84c31026d15a1c481a2b2a3db671 (diff)
ci(lintcommit): allow "NVIM vx.y.z" commit message #38563
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lintcommit.lua7
-rwxr-xr-xscripts/release.sh2
2 files changed, 8 insertions, 1 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,
diff --git a/scripts/release.sh b/scripts/release.sh
index 9d47aa5371..72d0a58821 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -44,7 +44,7 @@ __API_LEVEL=$(grep 'set(NVIM_API_LEVEL ' CMakeLists.txt\
__RELEASE_MSG="NVIM v${__VERSION}
"
-__BUMP_MSG="version bump"
+__BUMP_MSG="build: version bump"
echo "Most recent tag: ${__LAST_TAG}"
echo "Release version: ${__VERSION}"