Prepare services.py

This commit is contained in:
erik 2023-02-16 16:55:01 +01:00
parent 22c5f6777e
commit 38c7aa97ca

39
services.py Normal file
View file

@ -0,0 +1,39 @@
class InitReleaseService():
def __init__(self, commit_id, file):
self.commit_id = commit_id
self.file = file
def __read_commit_message(self):
pass
def __calculate_release_type(self):
pass
def get_version(self):
current_version = VersionRepository.get_current_version(self.file)
commit_message = self.read_commit_message(self.commit_id)
release_type = self.calculate_release_type(commit_message)
release_version = create_release_version(current_version,release_type)
bump_version = create_bump_version(current_version,release_type)
release_and_bump_version = tuple(release_version, bump_version)
return release_and_bump_version
def create_release_version(self):
pass
def create_bump_version(self):
pass
class PrepareReleaseService():
pass
class TagAndPushReleaseService():
pass