Skip to content
Snippets Groups Projects
Verified Commit 54aa2736 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: debugging

parent ee6201ec
No related branches found
No related tags found
No related merge requests found
......@@ -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:") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment