Skip to content

Commit

Permalink
fix: default branch to "master" in torngit github (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-codecov committed May 16, 2024
1 parent 5ada529 commit f17719a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/torngit/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ async def get_repos_from_nodeids_generator(
),
"private": raw_repo_data["isPrivate"],
"branch": (
default_branch.get("name") if default_branch else None
default_branch.get("name") if default_branch else "master"
),
"owner": {
"node_id": raw_repo_data["owner"]["id"],
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ async def test_get_repos_from_nodeids_generator(self, valid_handler, codecov_vcr
"name": "test-no-languages",
"language": None,
"private": False,
"branch": None,
"branch": "master",
"owner": {
"node_id": "U_kgDOBZOfKw",
"username": "codecove2e",
Expand Down

0 comments on commit f17719a

Please sign in to comment.