From a43e7f52151f5c541cb4a4cb547ab93fd3aa642e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huy=20H=C3=B9ng?= Date: Fri, 24 Mar 2023 14:30:55 +0700 Subject: [PATCH] fix(commit): wrong hash commit in log --- internal/commitpipeline/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commitpipeline/run.go b/internal/commitpipeline/run.go index 6d0cd712..a3dd4414 100644 --- a/internal/commitpipeline/run.go +++ b/internal/commitpipeline/run.go @@ -57,7 +57,7 @@ func (pipeline *Pipeline) Run() (*dispatcher.PipelineSuccess, error) { parsedCommit := quoad.ParseCommitMessage(commitObject.Message) - log.Debugf("Commit found: [hash] %v [message] %v", parsedCommit.Hash.String(), parsedCommit.Heading) + log.Debugf("Commit found: [hash] %v [message] %v", commitObject.Hash, parsedCommit.Heading) if !text.IsMergeCommit(commitObject.Message) && !text.IsInitialCommit(commitObject.Message) && !text.IsRevertCommit(commitObject.Message) { filteredCommits = append(filteredCommits, commitHash)