Pass Release instead of Version object
This commit is contained in:
parent
28344667db
commit
9c9676b5b8
2 changed files with 4 additions and 4 deletions
|
@ -40,4 +40,4 @@ 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_version)
|
tag_and_push_release_service.tag_and_push_release(self.release_repo.get_release())
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from infrastructure import VersionRepository, ReleaseRepository, GitApi
|
from infrastructure import VersionRepository, ReleaseRepository, GitApi
|
||||||
from domain import Version, ReleaseType
|
from domain import Version, ReleaseType, Release
|
||||||
|
|
||||||
class PrepareReleaseService():
|
class PrepareReleaseService():
|
||||||
|
|
||||||
|
@ -28,8 +28,8 @@ 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_version: Version):
|
def tag_and_push_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()
|
# self.git_api.push()
|
||||||
|
|
Loading…
Reference in a new issue