Skip to content

Commit ee6fee1

Browse files
committed
fix(git): restrict commit type matching in release notes
- match only "feat" and "fix" types for features and fixes - exclude "feature" and "bugfix" aliases from type parsing
1 parent 2bd4457 commit ee6fee1

File tree

1 file changed

+2
-2
lines changed
  • lua/codecompanion/_extensions/gitcommit/tools

1 file changed

+2
-2
lines changed

lua/codecompanion/_extensions/gitcommit/tools/git.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,9 +793,9 @@ function GitTool.generate_release_notes(from_tag, to_tag, format)
793793
for _, commit in ipairs(commits) do
794794
local type_match = commit.subject:match("^(%w+)%(.*%):") or commit.subject:match("^(%w+):")
795795
if type_match then
796-
if type_match == "feat" or type_match == "feature" then
796+
if type_match == "feat" then
797797
table.insert(features, commit)
798-
elseif type_match == "fix" or type_match == "bugfix" then
798+
elseif type_match == "fix" then
799799
table.insert(fixes, commit)
800800
else
801801
table.insert(others, commit)

0 commit comments

Comments
 (0)