From a066b44b1d2a379717b31255d81b017cd78290a5 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 26 May 2023 12:24:37 +0200 Subject: [PATCH 1/2] Fix sync-typeshed script --- misc/sync-typeshed.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/misc/sync-typeshed.py b/misc/sync-typeshed.py index 22023234710e..681c07918935 100644 --- a/misc/sync-typeshed.py +++ b/misc/sync-typeshed.py @@ -92,12 +92,7 @@ def create_or_update_pull_request(*, title: str, body: str, branch_name: str) -> with requests.post( "https://api.github.com/repos/python/mypy/pulls", - json={ - "title": title, - "body": body, - "head": f"{fork_owner}:{branch_name}", - "base": "master", - }, + json={"title": title, "body": body, "head": f"{fork_owner}:{branch_name}", "base": "main"}, headers=get_github_api_headers(), ) as response: resp_json = response.json() @@ -108,7 +103,7 @@ def create_or_update_pull_request(*, title: str, body: str, branch_name: str) -> # Find the existing PR with requests.get( "https://api.github.com/repos/python/mypy/pulls", - params={"state": "open", "head": f"{fork_owner}:{branch_name}", "base": "master"}, + params={"state": "open", "head": f"{fork_owner}:{branch_name}", "base": "main"}, headers=get_github_api_headers(), ) as response: response.raise_for_status() @@ -158,7 +153,7 @@ def main() -> None: shutil.copytree(typeshed_patches, tmp_patches) branch_name = "mypybot/sync-typeshed" - subprocess.run(["git", "checkout", "-B", branch_name, "origin/master"], check=True) + subprocess.run(["git", "checkout", "-B", branch_name, "origin/main"], check=True) # Copy the stashed patches back shutil.rmtree(typeshed_patches, ignore_errors=True) From 60611195415457a37a233093f5e2d2339c68a76c Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 26 May 2023 12:25:45 +0200 Subject: [PATCH 2/2] Cleanup references to master branch --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/workflows/build_wheels.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/mypy_primer.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/test_stubgenc.yml | 2 +- CHANGELOG.md | 2 +- CREDITS | 2 +- README.md | 2 +- docs/source/additional_features.rst | 10 +++++----- docs/source/conf.py | 2 +- docs/source/extending_mypy.rst | 4 ++-- docs/source/index.rst | 2 +- misc/generate_changelog.py | 2 +- misc/perf_compare.py | 2 +- misc/trigger_wheel_build.sh | 2 +- mypy/errors.py | 4 ++-- mypyc/doc/dev-intro.md | 2 +- mypyc/doc/index.rst | 2 +- setup.py | 2 +- 20 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 696eb8aee125..ff8d7d379949 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,7 +4,7 @@