@@ -480,7 +480,7 @@ async def create_or_update_pull_request(*, title: str, body: str, branch_name: s
480
480
481
481
async with session .post (
482
482
f"https://api.github.com/repos/{ TYPESHED_OWNER } /typeshed/pulls" ,
483
- json = {"title" : title , "body" : body , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "master " },
483
+ json = {"title" : title , "body" : body , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "main " },
484
484
headers = get_github_api_headers (),
485
485
) as response :
486
486
resp_json = await response .json ()
@@ -490,7 +490,7 @@ async def create_or_update_pull_request(*, title: str, body: str, branch_name: s
490
490
# Find the existing PR
491
491
async with session .get (
492
492
f"https://api.github.com/repos/{ TYPESHED_OWNER } /typeshed/pulls" ,
493
- params = {"state" : "open" , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "master " },
493
+ params = {"state" : "open" , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "main " },
494
494
headers = get_github_api_headers (),
495
495
) as response :
496
496
response .raise_for_status ()
@@ -606,7 +606,7 @@ async def suggest_typeshed_update(update: Update, session: aiohttp.ClientSession
606
606
title = f"[stubsabot] Bump { update .distribution } to { update .new_version_spec } "
607
607
async with _repo_lock :
608
608
branch_name = f"{ BRANCH_PREFIX } /{ normalize (update .distribution )} "
609
- subprocess .check_call (["git" , "checkout" , "-B" , branch_name , "origin/master " ])
609
+ subprocess .check_call (["git" , "checkout" , "-B" , branch_name , "origin/main " ])
610
610
with open (update .stub_path / "METADATA.toml" , "rb" ) as f :
611
611
meta = tomlkit .load (f )
612
612
meta ["version" ] = update .new_version_spec
@@ -632,7 +632,7 @@ async def suggest_typeshed_obsolete(obsolete: Obsolete, session: aiohttp.ClientS
632
632
title = f"[stubsabot] Mark { obsolete .distribution } as obsolete since { obsolete .obsolete_since_version } "
633
633
async with _repo_lock :
634
634
branch_name = f"{ BRANCH_PREFIX } /{ normalize (obsolete .distribution )} "
635
- subprocess .check_call (["git" , "checkout" , "-B" , branch_name , "origin/master " ])
635
+ subprocess .check_call (["git" , "checkout" , "-B" , branch_name , "origin/main " ])
636
636
with open (obsolete .stub_path / "METADATA.toml" , "rb" ) as f :
637
637
meta = tomlkit .load (f )
638
638
obs_string = tomlkit .string (obsolete .obsolete_since_version )
0 commit comments