diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-11-27 14:03:16 +0100 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-12-04 10:11:56 +0100 |
commit | 23add0c1e5c9cbdf0301b891d265e363d049532b (patch) | |
tree | 45f9735db3071da4c301d2b50636ac0de4957836 /python/wpt/exporter | |
parent | 7bcb25c85c98c367c6423ebc0fed964dd08cad56 (diff) | |
download | servo-23add0c1e5c9cbdf0301b891d265e363d049532b.tar.gz servo-23add0c1e5c9cbdf0301b891d265e363d049532b.zip |
Rename the `master` branch to `main`
Diffstat (limited to 'python/wpt/exporter')
-rw-r--r-- | python/wpt/exporter/github.py | 4 | ||||
-rw-r--r-- | python/wpt/exporter/step.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/wpt/exporter/github.py b/python/wpt/exporter/github.py index 31fa5bb93c3..08b491765be 100644 --- a/python/wpt/exporter/github.py +++ b/python/wpt/exporter/github.py @@ -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, } diff --git a/python/wpt/exporter/step.py b/python/wpt/exporter/step.py index 9781353ce15..d56c4a3e852 100644 --- a/python/wpt/exporter/step.py +++ b/python/wpt/exporter/step.py @@ -190,7 +190,7 @@ class CreateOrUpdateBranchForPRStep(Step): return branch_name finally: try: - run.sync.local_wpt_repo.run("checkout", "master") + run.sync.local_wpt_repo.run("checkout", "main") run.sync.local_wpt_repo.run("branch", "-D", branch_name) except Exception: pass |