Implement creation of bump version

This commit is contained in:
erik 2023-02-20 15:50:58 +01:00
parent eb998cfdbb
commit fa7e10d3ce

View file

@ -26,10 +26,14 @@ class InitReleaseService():
release_version = Version.create_release_version(version_list, release_type) release_version = Version.create_release_version(version_list, release_type)
self.version_repo.write_file(release_version.get_version_string()) self.version_repo.write_file(release_version.get_version_string())
def create_bump_version(self): def create_bump_version(self):
bump_version = create_bump_version(version_repo.version_list, release_type) if self.version_repo == None:
pass 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())