Skip to content

Commit c8d8a57

Browse files
authored
Merge pull request #2034 from rust-lang/rename-default-branch-to-main
rename default branch to main
2 parents 0465346 + b273912 commit c8d8a57

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/dry-run.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
with:
3434
# If the PR is from this repository, checkout the PR sha,
3535
# so that we can also test code changes.
36-
# If it is from a fork, then always checkout the 'master' branch,
36+
# If it is from a fork, then always checkout the 'main' branch,
3737
# to avoid checking out code of untrusted PRs.
38-
ref: ${{ github.event.workflow_run.head_repository.full_name != 'rust-lang/team' && 'master' || github.event.workflow_run.head_sha }}
38+
ref: ${{ github.event.workflow_run.head_repository.full_name != 'rust-lang/team' && 'main' || github.event.workflow_run.head_sha }}
3939
persist-credentials: false
4040

4141
- name: Install Rust Stable

docs/toml-schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Admins cannot override these branch protections. If an admin needs to do that, t
354354
# The branch protections (optional)
355355
[[branch-protections]]
356356
# The pattern matching the branches to be protected (required)
357-
pattern = "master"
357+
pattern = "main"
358358
# Which CI checks to are required for merging (optional)
359359
# Cannot be set if `pr-required` is `false`.
360360
#

repos/rust-lang/team.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ team-repo-admins = "write"
99
infra = "triage"
1010

1111
[[branch-protections]]
12-
pattern = "master"
12+
pattern = "main"
1313
ci-checks = ["CI"]
1414
dismiss-stale-review = true

0 commit comments

Comments
 (0)