Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
4f123811
Commit
4f123811
authored
6 years ago
by
Pavel KORSHUNOV
Browse files
Options
Downloads
Patches
Plain Diff
correcting version bumping in release script
parent
ea51bec2
No related branches found
Branches containing commit
No related tags found
1 merge request
!85
Correcting release script: sorting tags, corrected version bump, updated help docs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/release_bob.py
+4
-3
4 additions, 3 deletions
release/release_bob.py
with
4 additions
and
3 deletions
release/release_bob.py
+
4
−
3
View file @
4f123811
...
@@ -154,12 +154,13 @@ def get_parsed_tag(gitpkg, tag):
...
@@ -154,12 +154,13 @@ def get_parsed_tag(gitpkg, tag):
raise
ValueError
(
raise
ValueError
(
'
The latest tag name {0} in package {1} has unknown format
'
.
format
(
'
v
'
+
latest_tag_name
,
gitpkg
.
name
))
'
The latest tag name {0} in package {1} has unknown format
'
.
format
(
'
v
'
+
latest_tag_name
,
gitpkg
.
name
))
# increase the version accordingly
# increase the version accordingly
major
,
minor
,
patch
=
latest_tag_name
.
split
(
'
.
'
)
if
'
major
'
==
tag
:
# increment the first number in 'v#.#.#' but make minor and patch to be 0
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
'
return
'
v
'
+
str
(
int
(
major
)
+
1
)
+
'
.0.0
'
if
'
minor
'
==
tag
:
# increment the second number in 'v#.#.#' but make patch to be 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
[
2
]
)
+
1
)
+
'
.0
'
return
'
v
'
+
major
+
'
.
'
+
str
(
int
(
minor
)
+
1
)
+
'
.0
'
if
'
patch
'
==
tag
:
# increment the last number in 'v#.#.#'
if
'
patch
'
==
tag
:
# increment the last number in 'v#.#.#'
return
'
v
'
+
latest_tag_name
[:
-
1
]
+
str
(
int
(
l
at
est_tag_name
[
-
1
]
)
+
1
)
return
'
v
'
+
major
+
'
.
'
+
minor
+
'
.
'
+
str
(
int
(
p
at
ch
)
+
1
)
if
'
none
'
==
tag
:
# we do nothing in this case
if
'
none
'
==
tag
:
# we do nothing in this case
return
tag
return
tag
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment