Skip to content

Commit

Permalink
Merge pull request #385 from gitautoai/wes
Browse files Browse the repository at this point in the history
Add a log to investigate an error: Could not get the default branch in add_issue_templates()
  • Loading branch information
hiroshinishio authored Nov 21, 2024
2 parents 664725d + 9f531e3 commit ca3ddc9
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 ca3ddc9

Please sign in to comment.