From 23add0c1e5c9cbdf0301b891d265e363d049532b Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 27 Nov 2023 14:03:16 +0100 Subject: Rename the `master` branch to `main` --- python/wpt/exporter/github.py | 4 ++-- python/wpt/exporter/step.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python/wpt/exporter') 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 -- cgit v1.2.3