From b27391297f4deebc181923d34d1e238d20f189ba Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Fri, 24 Oct 2025 11:58:44 +0200 Subject: [PATCH] rename default branch to main --- .github/workflows/dry-run.yml | 4 ++-- docs/toml-schema.md | 2 +- repos/rust-lang/team.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index e415c7be4..b98ef106e 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -33,9 +33,9 @@ jobs: with: # If the PR is from this repository, checkout the PR sha, # so that we can also test code changes. - # If it is from a fork, then always checkout the 'master' branch, + # If it is from a fork, then always checkout the 'main' branch, # to avoid checking out code of untrusted PRs. - ref: ${{ github.event.workflow_run.head_repository.full_name != 'rust-lang/team' && 'master' || github.event.workflow_run.head_sha }} + ref: ${{ github.event.workflow_run.head_repository.full_name != 'rust-lang/team' && 'main' || github.event.workflow_run.head_sha }} persist-credentials: false - name: Install Rust Stable diff --git a/docs/toml-schema.md b/docs/toml-schema.md index 2eed2494e..9386c70ba 100644 --- a/docs/toml-schema.md +++ b/docs/toml-schema.md @@ -365,7 +365,7 @@ Admins cannot override these branch protections. If an admin needs to do that, t # The branch protections (optional) [[branch-protections]] # The pattern matching the branches to be protected (required) -pattern = "master" +pattern = "main" # Which CI checks to are required for merging (optional) # Cannot be set if `pr-required` is `false`. # diff --git a/repos/rust-lang/team.toml b/repos/rust-lang/team.toml index 8bd39a672..d8cadeaab 100644 --- a/repos/rust-lang/team.toml +++ b/repos/rust-lang/team.toml @@ -9,6 +9,6 @@ team-repo-admins = "write" infra = "triage" [[branch-protections]] -pattern = "master" +pattern = "main" ci-checks = ["CI"] dismiss-stale-review = true