fix logiv gap
This commit is contained in:
parent
f0f4f46f46
commit
f0f7ef87bd
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ class ReleaseService:
|
||||||
version = release.version.create_minor()
|
version = release.version.create_minor()
|
||||||
case ReleaseType.PATCH:
|
case ReleaseType.PATCH:
|
||||||
version = release.version.create_patch()
|
version = release.version.create_patch()
|
||||||
case ReleaseType.NONE:
|
case _:
|
||||||
return
|
return
|
||||||
message = f"release: {version.to_string()}"
|
message = f"release: {version.to_string()}"
|
||||||
self.__set_version_and_commit__(version, release.build_files(), message)
|
self.__set_version_and_commit__(version, release.build_files(), message)
|
||||||
|
@ -37,7 +37,7 @@ class ReleaseService:
|
||||||
release_version = release.version.create_minor()
|
release_version = release.version.create_minor()
|
||||||
case ReleaseType.PATCH:
|
case ReleaseType.PATCH:
|
||||||
release_version = release.version.create_patch()
|
release_version = release.version.create_patch()
|
||||||
case ReleaseType.NONE:
|
case _:
|
||||||
return
|
return
|
||||||
bump_version = release_version.create_bump("SNAPSHOT")
|
bump_version = release_version.create_bump("SNAPSHOT")
|
||||||
release_message = f"release: {release_version.to_string()}"
|
release_message = f"release: {release_version.to_string()}"
|
||||||
|
|
|
@ -12,10 +12,10 @@ class ReleaseMixin(DevopsBuild):
|
||||||
if MixinType.RELEASE not in devops.mixins:
|
if MixinType.RELEASE not in devops.mixins:
|
||||||
raise ValueError("ReleaseMixin requires MixinType.RELEASE")
|
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)
|
devops = self.devops_repo.get_devops(self.project)
|
||||||
release = devops.mixins[MixinType.RELEASE]
|
release = devops.mixins[MixinType.RELEASE]
|
||||||
release.update_release_type(release_type)
|
release.update_release_type(ReleaseType[release_type_str])
|
||||||
|
|
||||||
def prepare_release(self):
|
def prepare_release(self):
|
||||||
devops = self.devops_repo.get_devops(self.project)
|
devops = self.devops_repo.get_devops(self.project)
|
||||||
|
|
Loading…
Reference in a new issue