-
Notifications
You must be signed in to change notification settings - Fork 604
/
Copy pathsync-repo-settings.yaml
45 lines (42 loc) · 1.49 KB
/
sync-repo-settings.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Whether or not rebase-merging is enabled on this repository.
# Defaults to `true`
rebaseMergeAllowed: true
# Whether or not squash-merging is enabled on this repository.
# Defaults to `true`
squashMergeAllowed: true
# Whether or not PRs are merged with a merge commit on this repository.
# Defaults to `false`
mergeCommitAllowed: false
# Rules for main branch protection
branchProtectionRules:
# Identifies the protection rule pattern. Name of the branch to be protected.
# Defaults to `main`
- pattern: main
# Can admins overwrite branch protection.
# Defaults to `true`
isAdminEnforced: false
# Number of approving reviews required to update matching branches.
# Defaults to `1`
requiredApprovingReviewCount: 1
# Are reviews from code owners required to update matching branches.
# Defaults to `false`
requiresCodeOwnerReviews: true
# Require up to date branches
requiresStrictStatusChecks: false
# List of required status check contexts that must pass for commits to be accepted to matching branches.
requiredStatusCheckContexts:
- "cla/google"
- "system-presubmit-node14 (long-door-651)"
- "samples-presubmit-node14-with-credentials (long-door-651)"
- "samples-presubmit-node14 (long-door-651)"
- "units (14)"
- "units (16)"
- "units (18)"
- "units (20)"
# List of explicit permissions to add (additive only)
permissionRules:
# Team slug to add to repository permissions
- team: jsteam-admins
permission: admin
- team: jsteam
permission: push