fixes for release-mixin

This commit is contained in:
Michael Jerger 2023-05-19 15:50:15 +02:00
parent 31178e940d
commit e51d2ec2a4
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ class ReleaseService:
self, version: Version, build_file_ids: List[str], message: str
):
for id in build_file_ids:
build_file = self.build_file_repository.get(id)
build_file = self.build_file_repository.get(Path(id))
build_file.set_version(version)
self.build_file_repository.write(build_file)
self.git_api.add_file(build_file.file_path)

View file

@ -13,11 +13,11 @@ class ReleaseMixin(DevopsBuild):
raise ValueError(f"ReleaseMixin requires MixinType.RELEASE")
def prepare_release(self):
devops = self.repo.get_devops(self.project)
devops = self.devops_repo.get_devops(self.project)
release = devops.mixins[MixinType.RELEASE]
self.release_service.prepare_release(release)
def tag_bump_and_push_release(self):
devops = self.repo.get_devops(self.project)
devops = self.devops_repo.get_devops(self.project)
release = devops.mixins[MixinType.RELEASE]
self.release_service.tag_bump_and_push_release(release)