fix logiv gap

This commit is contained in:
Michael Jerger 2023-06-28 08:22:21 +02:00
parent f0f4f46f46
commit f0f7ef87bd
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ class ReleaseService:
version = release.version.create_minor()
case ReleaseType.PATCH:
version = release.version.create_patch()
case ReleaseType.NONE:
case _:
return
message = f"release: {version.to_string()}"
self.__set_version_and_commit__(version, release.build_files(), message)
@ -37,7 +37,7 @@ class ReleaseService:
release_version = release.version.create_minor()
case ReleaseType.PATCH:
release_version = release.version.create_patch()
case ReleaseType.NONE:
case _:
return
bump_version = release_version.create_bump("SNAPSHOT")
release_message = f"release: {release_version.to_string()}"

View file

@ -12,10 +12,10 @@ class ReleaseMixin(DevopsBuild):
if MixinType.RELEASE not in devops.mixins:
raise ValueError("ReleaseMixin requires MixinType.RELEASE")
def update_release_type(self, release_type: ReleaseType):
def update_release_type(self, release_type_str: str):
devops = self.devops_repo.get_devops(self.project)
release = devops.mixins[MixinType.RELEASE]
release.update_release_type(release_type)
release.update_release_type(ReleaseType[release_type_str])
def prepare_release(self):
devops = self.devops_repo.get_devops(self.project)