From 9606945a6f49759a5617cea175ff1fbc3ad29d5a Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Wed, 6 Nov 2024 10:18:26 +0100 Subject: [PATCH] Add missing init_projects when fork is not used. In case init_projects is not used then we have a traceback in real situation Bump version to 0.9.2. Signed-off-by: Petr "Stone" Hracek --- .github/workflows/build-and-push.yml | 2 +- Dockerfile | 2 +- betka/core.py | 1 + setup.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 236f6ae..58d74c9 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -20,7 +20,7 @@ jobs: with: dockerfiles: ./Dockerfile image: betka - tags: latest 1 ${{ github.sha }} 0.9.1 + tags: latest 1 ${{ github.sha }} 0.9.2 - name: Push betka image to Quay.io id: push-to-quay diff --git a/Dockerfile b/Dockerfile index 8bc7311..0f99768 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM quay.io/fedora/fedora:37 ENV NAME=betka-fedora \ - RELEASE=0.9.0 \ + RELEASE=0.9.2 \ ARCH=x86_64 \ SUMMARY="Syncs changes from upstream repository to downstream" \ DESCRIPTION="Syncs changes from upstream repository to downstream" \ diff --git a/betka/core.py b/betka/core.py index 8a85735..704c2de 100644 --- a/betka/core.py +++ b/betka/core.py @@ -729,6 +729,7 @@ def _run_sync(self): continue branch_list_to_sync = self._update_valid_remote_branches() else: + self.gitlab_api.init_projects() project_info = self.gitlab_api.get_project_info() self.ssh_url_to_repo = project_info.ssh_url_to_repo self.debug(f"Clone URL is: {self.ssh_url_to_repo}") diff --git a/setup.py b/setup.py index 7784c09..64a56a9 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def get_requirements(): setup( name="betka", - version="0.9.1", + version="0.9.2", packages=find_packages(exclude=["examples", "tests"]), url="https://github.com/sclorg/betka", license="GPLv3+",