Rename the master branch to main

This commit is contained in:
Martin Robinson 2023-11-27 14:03:16 +01:00
parent 7bcb25c85c
commit 23add0c1e5
14 changed files with 47 additions and 51 deletions

View file

@ -74,7 +74,7 @@ class GithubRepository:
self, branch: GithubBranch
) -> Optional[PullRequest]:
"""If this repository has an open pull request with the
given source head reference targeting the master branch,
given source head reference targeting the main branch,
return the first matching pull request, otherwise return None."""
params = "+".join([
@ -105,7 +105,7 @@ class GithubRepository:
data = {
"title": title,
"head": branch.get_pr_head_reference_for_repo(self),
"base": "master",
"base": "main",
"body": body,
"maintainer_can_modify": False,
}