From fa7e10d3ce0b8573772f9e47cbaa2aac6132f680 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 20 Feb 2023 15:50:58 +0100 Subject: [PATCH] Implement creation of bump version --- services.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/services.py b/services.py index b4ba72f..c7240aa 100644 --- a/services.py +++ b/services.py @@ -26,10 +26,14 @@ class InitReleaseService(): release_version = Version.create_release_version(version_list, release_type) self.version_repo.write_file(release_version.get_version_string()) - def create_bump_version(self): - bump_version = create_bump_version(version_repo.version_list, release_type) - pass + if self.version_repo == None: + raise Exception('VersionRepo was not created. Did you run create_lease_version()?') + version_list = self.get_version_list() + + bump_version = Version.create_bump_version(version_list, ReleaseType.SNAPSHOT) + self.version_repo.write_file(bump_version.get_version_string()) +