From 3ce6f60b1ddbf4f612cf1238e861814ffc55ea2d Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sun, 16 Jul 2023 23:24:16 +0200 Subject: [PATCH] fix: other commits --- git.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/git.go b/git.go index 961bf63..50308f4 100644 --- a/git.go +++ b/git.go @@ -13,10 +13,10 @@ import ( type CommitType int const ( - FixCommit CommitType = iota + OtherCommit CommitType = iota FeatCommit BreakingCommit - OtherCommit + FixCommit ) func GetCommitType(path string) (CommitType, error) { @@ -107,10 +107,8 @@ func getCommitTypeSinceTag(r *git.Repository, tagCommit *object.Commit) (CommitT commitType = BreakingCommit found = true return storer.ErrStop // stop iteration - } else { - commitType = OtherCommit } - + return nil }) if err != nil { -- GitLab