@@ -92,12 +92,7 @@ def create_or_update_pull_request(*, title: str, body: str, branch_name: str) ->
92
92
93
93
with requests .post (
94
94
"https://api.github.com/repos/python/mypy/pulls" ,
95
- json = {
96
- "title" : title ,
97
- "body" : body ,
98
- "head" : f"{ fork_owner } :{ branch_name } " ,
99
- "base" : "master" ,
100
- },
95
+ json = {"title" : title , "body" : body , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "main" },
101
96
headers = get_github_api_headers (),
102
97
) as response :
103
98
resp_json = response .json ()
@@ -108,7 +103,7 @@ def create_or_update_pull_request(*, title: str, body: str, branch_name: str) ->
108
103
# Find the existing PR
109
104
with requests .get (
110
105
"https://api.github.com/repos/python/mypy/pulls" ,
111
- params = {"state" : "open" , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "master " },
106
+ params = {"state" : "open" , "head" : f"{ fork_owner } :{ branch_name } " , "base" : "main " },
112
107
headers = get_github_api_headers (),
113
108
) as response :
114
109
response .raise_for_status ()
@@ -158,7 +153,7 @@ def main() -> None:
158
153
shutil .copytree (typeshed_patches , tmp_patches )
159
154
160
155
branch_name = "mypybot/sync-typeshed"
161
- subprocess .run (["git" , "checkout" , "-B" , branch_name , "origin/master " ], check = True )
156
+ subprocess .run (["git" , "checkout" , "-B" , branch_name , "origin/main " ], check = True )
162
157
163
158
# Copy the stashed patches back
164
159
shutil .rmtree (typeshed_patches , ignore_errors = True )
0 commit comments