From 844f2d2e131340df412fe266502b2e508bc7012a Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 29 Mar 2026 18:59:42 -0400 Subject: [PATCH] ci(lintcommit): allow "NVIM vx.y.z" commit message #38563 --- scripts/lintcommit.lua | 7 +++++++ scripts/release.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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}"