From 38c7aa97ca20db42f586c1f6142ef75d35f8fb9e Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 16 Feb 2023 16:55:01 +0100 Subject: [PATCH] Prepare services.py --- services.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 services.py diff --git a/services.py b/services.py new file mode 100644 index 0000000..49f9a62 --- /dev/null +++ b/services.py @@ -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 +