Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/toml-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
#
Expand Down
2 changes: 1 addition & 1 deletion repos/rust-lang/team.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ team-repo-admins = "write"
infra = "triage"

[[branch-protections]]
pattern = "master"
pattern = "main"
ci-checks = ["CI"]
dismiss-stale-review = true