From 992c72bda3308eb2be9761e31a17a1ae3f81d616 Mon Sep 17 00:00:00 2001 From: bom Date: Thu, 23 Feb 2023 14:23:32 +0100 Subject: [PATCH] Give 'file' a more descriptive name --- release_mixin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release_mixin.py b/release_mixin.py index fbf5756..4b8dc38 100644 --- a/release_mixin.py +++ b/release_mixin.py @@ -13,7 +13,7 @@ def create_release_mixin_config(config_file, main_branch) -> dict: config.update( {'ReleaseMixin': {'main_branch': main_branch, - 'file': config_file}}) + 'config_file': config_file}}) return config def add_versions(config, release_version, bump_version) -> dict: @@ -27,9 +27,9 @@ class ReleaseMixin(DevopsBuild): def __init__(self, project, config): super().__init__(project, config) release_mixin_config = config['ReleaseMixin'] - self.file = release_mixin_config['file'] + self.config_file = release_mixin_config['config_file'] self.main_branch = release_mixin_config['main_branch'] - self.version_repo = VersionRepository(self.file) + self.version_repo = VersionRepository(self.config_file) self.release_version = None self.bump_version = None self.commit_string = None @@ -45,7 +45,7 @@ class ReleaseMixin(DevopsBuild): raise Exception('Trying to release while not on main branch') self.version_repo.write_file(version.get_version_string()) - git_repository.add_file(self.file) + git_repository.add_file(self.config_file) match version.release_type: case None: raise Exception('Release type not set but trying to commit.')