From 58e6473747fcb72198aa6965f8f5e7f5d6d65a62 Mon Sep 17 00:00:00 2001 From: bom Date: Thu, 2 Mar 2023 16:37:42 +0100 Subject: [PATCH] Split tag_and_push_release into two --- release_mixin.py | 3 ++- services.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/release_mixin.py b/release_mixin.py index c488f51..06648e7 100644 --- a/release_mixin.py +++ b/release_mixin.py @@ -39,4 +39,5 @@ class ReleaseMixin(DevopsBuild): def tag_and_push_release(self): tag_and_push_release_service = TagAndPushReleaseService(self.git_api) - tag_and_push_release_service.tag_and_push_release(self.release_repo.get_release()) + tag_and_push_release_service.tag_release(self.release_repo.get_release()) + # tag_and_push_release_service.push_release() diff --git a/services.py b/services.py index 76125a7..42b8543 100644 --- a/services.py +++ b/services.py @@ -27,8 +27,10 @@ class TagAndPushReleaseService(): def __init__(self, git_api: GitApi): self.git_api = git_api - def tag_and_push_release(self, release: Release): + def tag_release(self, release: Release): annotation = 'v' + release.version.get_version_string() message = 'Release ' + annotation self.git_api.tag_annotated(annotation, message, 1) - # self.git_api.push() + + def push_release(self): + self.git_api.push()