Skip to content

Commit

Permalink
Merge pull request #376 from gitautoai/wes
Browse files Browse the repository at this point in the history
Add a logging to investigate an error: 'Could not get the default branch' in add_issue_templates()
  • Loading branch information
hiroshinishio authored Nov 17, 2024
2 parents d5f5c81 + e90238a commit 0270c72
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 @@ -72,7 +72,7 @@ def add_issue_templates(full_name: str, installer_name: str, token: str) -> None
break
except GithubException as e:
retries += 1
msg = f"Error: {e.data['message']}. Retrying to get the default branch for repo: {full_name} and branch: {default_branch_name}."
msg = f"Error getting default branch for repo '{full_name}', branch '{default_branch_name}'. Status: {e.status}, Error: {e.data}"
logging.info(msg)
time.sleep(20)
new_branch_name: str = f"{PRODUCT_ID}/add-issue-templates-{str(object=uuid4())}"
Expand Down

0 comments on commit 0270c72

Please sign in to comment.