Skip to content

Commit

Permalink
Fix version number incrementing in release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalton committed Jun 3, 2024
1 parent 5f9ec85 commit b185503
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ def increment_tag(tag, kind):
major, minor, bugfix = tag.replace("v", "").split(".")
if kind == "major":
major = int(major) + 1
minor = 0
bugfix = 0
elif kind == "minor":
minor = int(minor) + 1
bugfix = 0
elif kind == "bugfix":
bugfix = int(bugfix) + 1
return f"v{major}.{minor}.{bugfix}"
Expand Down

0 comments on commit b185503

Please sign in to comment.