From 9836a8092d7d61bbd2c82701b35c7c15de385d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 7 Feb 2024 17:33:01 +0100 Subject: [PATCH] Small cleanup --- update_app_levels/update_app_levels.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/update_app_levels/update_app_levels.py b/update_app_levels/update_app_levels.py index eee8c35..ee98a66 100755 --- a/update_app_levels/update_app_levels.py +++ b/update_app_levels/update_app_levels.py @@ -4,7 +4,6 @@ Update app catalog: commit, and create a merge request """ import argparse -import json import logging import tempfile import textwrap @@ -25,8 +24,6 @@ CI_RESULTS_URL = "https://ci-apps.yunohost.org/ci/api/results" REPO_APPS_ROOT = Path(Repo(__file__, search_parent_directories=True).working_dir) -VERBOSE = False - def github_token() -> str | None: github_token_path = REPO_APPS_ROOT.parent / ".github_token" @@ -185,9 +182,7 @@ def main(): args = parser.parse_args() logging.getLogger().setLevel(logging.INFO) - global VERBOSE if args.verbose: - VERBOSE = True logging.getLogger().setLevel(logging.DEBUG) with tempfile.TemporaryDirectory(prefix="update_app_levels_") as tmpdir: @@ -219,7 +214,7 @@ def main(): apps_repo.index.commit("Update app levels according to CI results") apps_repo.remote().push(force=True) - if VERBOSE: + if args.verbose: print(pr_body) if args.pr: