Skip to content

Commit

Permalink
Add a log to investigate an error: Could not get the default branch i…
Browse files Browse the repository at this point in the history
…n add_issue_templates()
  • Loading branch information
hiroshinishio committed Nov 21, 2024
1 parent 664725d commit 9f531e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/github/github_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 9f531e3

Please sign in to comment.