Skip to content
Snippets Groups Projects
Commit ea51bec2 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV
Browse files

small bug fix

parent da1cf9c3
No related branches found
No related tags found
1 merge request!85Correcting release script: sorting tags, corrected version bump, updated help docs
......@@ -157,7 +157,7 @@ def get_parsed_tag(gitpkg, tag):
if 'major' == tag: # increment the first number in 'v#.#.#' but make minor and patch to be 0
return 'v' + str(int(latest_tag_name[0]) + 1) + '.0.0'
if 'minor' == tag: # increment the second number in 'v#.#.#' but make patch to be 0
return 'v' + latest_tag_name[:2] + str(int(latest_tag_name[3]) + 1) + '.0'
return 'v' + latest_tag_name[:2] + str(int(latest_tag_name[2]) + 1) + '.0'
if 'patch' == tag: # increment the last number in 'v#.#.#'
return 'v' + latest_tag_name[:-1] + str(int(latest_tag_name[-1]) + 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment