Skip to content

Commit 51188c4

Browse files
chore: add sync-repo-settings config (googleapis#10544)
1 parent 45cc9c5 commit 51188c4

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/sync-repo-settings.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Whether or not rebase-merging is enabled on this repository.
2+
# Defaults to `true`
3+
rebaseMergeAllowed: true
4+
5+
# Whether or not squash-merging is enabled on this repository.
6+
# Defaults to `true`
7+
squashMergeAllowed: true
8+
9+
# Whether or not PRs are merged with a merge commit on this repository.
10+
# Defaults to `false`
11+
mergeCommitAllowed: false
12+
13+
# Rules for master branch protection
14+
branchProtectionRules:
15+
# Identifies the protection rule pattern. Name of the branch to be protected.
16+
# Defaults to `master`
17+
- pattern: master
18+
# Can admins overwrite branch protection.
19+
# Defaults to `true`
20+
isAdminEnforced: false
21+
# Number of approving reviews required to update matching branches.
22+
# Defaults to `1`
23+
requiredApprovingReviewCount: 1
24+
# Are reviews from code owners required to update matching branches.
25+
# Defaults to `false`
26+
requiresCodeOwnerReviews: true
27+
# Require up to date branches
28+
requiresStrictStatusChecks: true
29+
# List of required status check contexts that must pass for commits to be accepted to matching branches.
30+
requiredStatusCheckContexts:
31+
- "cla/google"
32+
# List of explicit permissions to add (additive only)
33+
permissionRules:
34+
# Team slug to add to repository permissions
35+
- team: yoshi-admins
36+
# Access level required, one of push|pull|admin
37+
permission: admin
38+
- team: yoshi-python-admins
39+
permission: admin
40+
- team: yoshi-python
41+
permission: push

0 commit comments

Comments
 (0)