fix(internal): improve git log for commits on current branch since last release

At the moment when PRs where done in parallel it could happen that some commits where ignored in the release. This should be fixed now
This commit is contained in:
Sebastian Beisch
2021-04-27 21:38:41 +02:00
committed by Felix Wiedmann
parent cb3084d0b7
commit 2cd24777b3
2 changed files with 36 additions and 27 deletions

View File

@@ -131,7 +131,7 @@ func (s *SemanticRelease) GetNextVersion(provider *ci.ProviderConfig, force bool
Version: &newVersion,
},
Last: shared.ReleaseVersionEntry{
Commit: lastVersionHash,
Commit: lastVersionHash.Hash().String(),
Version: lastVersion,
},
Branch: provider.Branch,
@@ -171,7 +171,7 @@ func (s *SemanticRelease) SetVersion(provider *ci.ProviderConfig, version string
Version: newVersion,
},
Last: shared.ReleaseVersionEntry{
Commit: lastVersionHash,
Commit: lastVersionHash.Hash().String(),
Version: lastVersion,
},
Branch: provider.Branch,