From 54aa27362ef7100a68f186c41f8d9b7d0b8070a9 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sun, 16 Jul 2023 19:22:26 +0200 Subject: [PATCH] chore: debugging --- git.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git.go b/git.go index 7cc3dfe..6671e8a 100644 --- a/git.go +++ b/git.go @@ -83,13 +83,13 @@ func getLatestTagCommit(r *git.Repository) (*object.Commit, error) { } func getCommitTypeSinceTag(r *git.Repository, tagCommit *object.Commit) (CommitType, error) { - commitLog, err := r.Log(&git.LogOptions{From: tagCommit.Hash}) + cIter, err := r.Log(&git.LogOptions{From: tagCommit.Hash}) if err != nil { return OtherCommit, fmt.Errorf("failed to get commit log: %v", err) } var commitType CommitType - err = commitLog.ForEach(func(commit *object.Commit) error { + err = cIter.ForEach(func(commit *object.Commit) error { if strings.HasPrefix(commit.Message, "feat:") { commitType = FeatCommit } else if strings.HasPrefix(commit.Message, "fix:") { -- GitLab