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

allow project with empty tags, fixed changelog

parent 6081f38e
No related branches found
No related tags found
1 merge request!75The release script for bob that uses changelog as a guidance for release
...@@ -178,12 +178,14 @@ ...@@ -178,12 +178,14 @@
* minor * minor
* Migrate to conda based CI * Migrate to conda based CI
* bob.db.asvspoof * bob.db.asvspoof
* v1.0.3 (Sep 22, 2017 14:20) * v1.1.7 (Sep 22, 2017 14:20)
* Docs updates
* minor * minor
* Migrate to conda based CI * Migrate to conda based CI
* Removed redundant debug_asvspoof2017 script * Removed redundant debug_asvspoof script
* bob.db.asvspoof2017 * bob.db.asvspoof2017
* v1.0.3 (Sep 22, 2017 14:20) * v1.0.3 (Sep 22, 2017 14:20)
* Docs updates
* minor * minor
* Migrate to conda based CI * Migrate to conda based CI
* Removed redundant debug_asvspoof2017 script * Removed redundant debug_asvspoof2017 script
......
...@@ -13,7 +13,7 @@ Usage: ...@@ -13,7 +13,7 @@ Usage:
Arguments: Arguments:
<private_token> Private token used to access GitLab. <private_token> Private token used to access GitLab.
Options: Options:
-h --help Show this screen. -h --help Show this screen.
--version Show version. --version Show version.
...@@ -84,7 +84,11 @@ def get_parsed_tag(gitpkg, tag): ...@@ -84,7 +84,11 @@ def get_parsed_tag(gitpkg, tag):
# if we bump the version, we need to find the latest released version for this package # if we bump the version, we need to find the latest released version for this package
if 'patch' == tag or 'minor' == tag or 'major' == tag: if 'patch' == tag or 'minor' == tag or 'major' == tag:
latest_tag = gitpkg.tags.list(per_page=1, page=1)[0] latest_tag = gitpkg.tags.list(per_page=1, page=1)
# if there were no tags yet, assume the first version
if not latest_tag:
return 'v1.0.0'
latest_tag = latest_tag[0]
latest_tag_name = latest_tag.name latest_tag_name = latest_tag.name
# check that it has expected format v#.#.# # check that it has expected format v#.#.#
# latest_tag_name = Version(latest_tag_name) # latest_tag_name = Version(latest_tag_name)
......
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