|
|
@ -22,11 +22,12 @@ class PrepareReleaseService():
|
|
|
|
|
|
|
|
|
|
|
|
class TagAndPushReleaseService():
|
|
|
|
class TagAndPushReleaseService():
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, git_api: GitApi):
|
|
|
|
def __init__(self, git_api: GitApi, main_branch: str):
|
|
|
|
self.git_api = git_api
|
|
|
|
self.git_api = git_api
|
|
|
|
|
|
|
|
self.main_branch = main_branch
|
|
|
|
|
|
|
|
|
|
|
|
def tag_release(self, release_repo: ReleaseContextRepository):
|
|
|
|
def tag_release(self, release_repo: ReleaseContextRepository):
|
|
|
|
annotation = 'v' + release_repo.get_release().version.get_version_string()
|
|
|
|
annotation = 'v' + release_repo.get_release(self.main_branch).version.get_version_string()
|
|
|
|
message = 'Release ' + annotation
|
|
|
|
message = 'Release ' + annotation
|
|
|
|
self.git_api.tag_annotated_second_last(annotation, message)
|
|
|
|
self.git_api.tag_annotated_second_last(annotation, message)
|
|
|
|
|
|
|
|
|
|
|
|