Split tag_and_push_release into two
This commit is contained in:
parent
21e941cce0
commit
58e6473747
2 changed files with 6 additions and 3 deletions
|
@ -39,4 +39,5 @@ class ReleaseMixin(DevopsBuild):
|
||||||
|
|
||||||
def tag_and_push_release(self):
|
def tag_and_push_release(self):
|
||||||
tag_and_push_release_service = TagAndPushReleaseService(self.git_api)
|
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()
|
||||||
|
|
|
@ -27,8 +27,10 @@ class TagAndPushReleaseService():
|
||||||
def __init__(self, git_api: GitApi):
|
def __init__(self, git_api: GitApi):
|
||||||
self.git_api = git_api
|
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()
|
annotation = 'v' + release.version.get_version_string()
|
||||||
message = 'Release ' + annotation
|
message = 'Release ' + annotation
|
||||||
self.git_api.tag_annotated(annotation, message, 1)
|
self.git_api.tag_annotated(annotation, message, 1)
|
||||||
# self.git_api.push()
|
|
||||||
|
def push_release(self):
|
||||||
|
self.git_api.push()
|
||||||
|
|
Loading…
Reference in a new issue