From 9f531e3ea75ab2e6cec84c73aa1ac31f5c27c009 Mon Sep 17 00:00:00 2001 From: Hiroshi Nishio Date: Thu, 21 Nov 2024 10:31:19 +0900 Subject: [PATCH] Add a log to investigate an error: Could not get the default branch in add_issue_templates() --- services/github/github_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/github/github_manager.py b/services/github/github_manager.py index 4a12148b..cbd44010 100644 --- a/services/github/github_manager.py +++ b/services/github/github_manager.py @@ -73,7 +73,7 @@ def add_issue_templates(full_name: str, installer_name: str, token: str) -> None except GithubException as e: retries += 1 msg = f"Error getting default branch for repo '{full_name}', branch '{default_branch_name}'. Status: {e.status}, Error: {e.data}" - logging.info(msg) + logging.error(msg) time.sleep(20) new_branch_name: str = f"{PRODUCT_ID}/add-issue-templates-{str(object=uuid4())}" ref = f"refs/heads/{new_branch_name}"