Skip to content

Commit

Permalink
refactor: improves semver logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Apr 22, 2024
1 parent a8201ce commit 5550e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion semver/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func GetNextVersion(currentVersion string, vPrefix bool, commits []string) strin

// bumpVersion bumps the version based on the component.
func bumpVersion(version string, component Component) string {
logrus.Debugf("bumping %v version", component)
logrus.Tracef("bumping %v component", component)
components := strings.Split(version, ".")

switch component {
Expand All @@ -87,7 +87,9 @@ func bumpVersion(version string, component Component) string {
components[2] = bump(components[2])
break
}

nextVersion := strings.Join(components, ".")
logrus.Debugf("bumped %v component - new version %v", component, nextVersion)
return nextVersion
}

Expand Down

0 comments on commit 5550e5d

Please sign in to comment.