Skip to content

Commit

Permalink
fix: first version should start with 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Jan 27, 2022
1 parent 7371967 commit 76ea600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func incr(v *semver.Version, incr verIncr) *semver.Version {
func CalcNextVer(list []Commit, fromVersion *semver.Version) (*semver.Version, map[string][]*Commit) {
sections := map[string][]*Commit{}
verIncr := verIncrPatch
ver := semver.MustParseVersion("0.0.0")
ver := semver.MustParseVersion("0.0.1")

add := func(cm *Commit) {
sectionTitle := conventionalcommit.Types[cm.Type]
Expand Down

0 comments on commit 76ea600

Please sign in to comment.