Skip to content

Commit

Permalink
fix: correctly reset minor/patch when bumping versions
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed May 16, 2024
1 parent 3ebb5a0 commit ea93081
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ func main() {
switch *bump {
case "major":
parsed.Major += 1
parsed.Minor = 0
parsed.Patch = 0
case "minor":
parsed.Minor += 1
parsed.Patch = 0
case "patch":
parsed.Patch += 1
}
Expand Down

0 comments on commit ea93081

Please sign in to comment.