From b335addf6dc69bea04f85c3de4d9cf3e83756e03 Mon Sep 17 00:00:00 2001 From: Adam Bernot Date: Mon, 29 Jan 2024 21:53:11 +0000 Subject: [PATCH] docs: correct comments about feat/fix In semantic versioning, a feature leads to a minor release and a fix leads to a patch release. This was stated incorrectly in comments defining the corresponding types for feat and fix. Signed-off-by: bernot-dev adam@bernot.dev Signed-off-by: Noel Georgi --- internal/policy/commit/check_conventional_commit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/policy/commit/check_conventional_commit.go b/internal/policy/commit/check_conventional_commit.go index b6606534..0cc9452e 100644 --- a/internal/policy/commit/check_conventional_commit.go +++ b/internal/policy/commit/check_conventional_commit.go @@ -26,11 +26,11 @@ var HeaderRegex = regexp.MustCompile(`^(\w*)(\(([^)]+)\))?(!)?:\s{1}(.*)($|\n{2} const ( // TypeFeat is a commit of the type fix patches a bug in your codebase - // (this correlates with PATCH in semantic versioning). + // (this correlates with MINOR in semantic versioning). TypeFeat = "feat" // TypeFix is a commit of the type feat introduces a new feature to the - // codebase (this correlates with MINOR in semantic versioning). + // codebase (this correlates with PATCH in semantic versioning). TypeFix = "fix" )