From f0f7ef87bdc47c2ae12127b51e6fa230d438a175 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Wed, 28 Jun 2023 08:22:21 +0200 Subject: [PATCH] fix logiv gap --- .../python/ddadevops/application/release_mixin_services.py | 4 ++-- src/main/python/ddadevops/release_mixin.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/python/ddadevops/application/release_mixin_services.py b/src/main/python/ddadevops/application/release_mixin_services.py index 813b4e8..7057674 100644 --- a/src/main/python/ddadevops/application/release_mixin_services.py +++ b/src/main/python/ddadevops/application/release_mixin_services.py @@ -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()}" diff --git a/src/main/python/ddadevops/release_mixin.py b/src/main/python/ddadevops/release_mixin.py index e761b1a..f716bc9 100644 --- a/src/main/python/ddadevops/release_mixin.py +++ b/src/main/python/ddadevops/release_mixin.py @@ -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)