From a60513aaf8b220bb4471c18c200887c852aa7b59 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Thu, 12 Sep 2024 15:25:36 +0200 Subject: [PATCH] Remove obsolete logs Signed-off-by: Petr "Stone" Hracek --- .github/workflows/build-and-push.yml | 2 +- Dockerfile | 2 +- betka/core.py | 7 +++---- betka/utils.py | 2 +- setup.py | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 64edd54..1370e8b 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.7.12 + tags: latest 1 ${{ github.sha }} 0.7.13 - name: Push betka image to Quay.io id: push-to-quay diff --git a/Dockerfile b/Dockerfile index 402f616..e9d215d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM quay.io/fedora/fedora:37 ENV NAME=betka-fedora \ - RELEASE=0.7.12 \ + RELEASE=0.7.13 \ 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 89902ee..e462802 100644 --- a/betka/core.py +++ b/betka/core.py @@ -33,7 +33,7 @@ from tempfile import TemporaryDirectory from pprint import pformat from pathlib import Path -from typing import Dict, List +from typing import Dict, List, Any from betka.bot import Bot from betka.emails import BetkaEmails @@ -223,7 +223,7 @@ def mandatory_variables_set(self): return False return True - def _get_image_url(self): + def _get_image_url(self) -> Any: image_url = self.betka_config.get("generator_url", None) self.debug(f"Image generator url from betka_config: {image_url}") if not image_url: @@ -430,7 +430,7 @@ def get_master_fedmsg_info(self, message): "issuer": head_commit["author"]["name"], "upstream_portal": "github.com", } - self.debug(f"Message artifacts {self.msg_artifact}") + #self.debug(f"Message artifacts {self.msg_artifact}") return True def prepare(self): @@ -615,7 +615,6 @@ def _sync_valid_branches(self, valid_branches): self.repo = Git.strip_dot_git(self.msg_upstream_url) self.info("SYNCING UPSTREAM TO DOWNSTREAM.") if not self.config.get("master_checker"): - self.info("Syncing upstream repo to downstream repo is not allowed.") continue self.create_and_copy_timestamp_dir() self.sync_to_downstream_branches(self.downstream_git_branch) diff --git a/betka/utils.py b/betka/utils.py index 62d831c..7d64c34 100644 --- a/betka/utils.py +++ b/betka/utils.py @@ -158,7 +158,7 @@ def list_dir_content(dir_name: Path): def load_config_json(): with open(f"{HOME}/config.json") as config_file: data = json.load(config_file) - logger.info(data) + #logger.info(data) return data diff --git a/setup.py b/setup.py index 0fb1d58..3ed79dc 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def get_requirements(): setup( name="betka", - version="0.7.12", + version="0.7.13", packages=find_packages(exclude=["examples", "tests"]), url="https://github.com/sclorg/betka", license="GPLv3+",