-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync-repo-settings.yaml
57 lines (53 loc) · 2.05 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
46
47
48
49
50
51
52
53
54
55
56
57
# Whether or not rebase-merging is enabled on this repository.
# Defaults to `true`
rebaseMergeAllowed: false
# 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
# Automatically delete head branches after merging PRs. Defaults to `true`.
deleteBranchOnMerge: true
# Rules for branch protection (add multiple entries to configure multiple branches)
branchProtectionRules:
# Identifies the protection rule pattern. Name of the branch to be protected.
# Defaults to `master`
- pattern: main
# Will new commits pushed to matching branches dissmiss pull request review approvals.
# Defaults to `false`
dismissesStaleReviews: true
# Can admins overwrite branch protection.
# Defaults to `true`
isAdminEnforced: true
# 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: true
# List of required status check contexts that must pass for commits to be accepted to matching branches.
# requiredStatusCheckContexts:
# Are commits required to be signed.
# Defaults to `false`
requiresCommitSignatures: false
# Are status checks required to update matching branches.
# Defaults to `true`
requiresStatusChecks: true
# Is pushing to matching branches restricted.
# Defaults to `false`
restrictPushes: false
# Is dismissal of pull request reviews restricted.
# Defaults to `false`
restrictsReviewDismissals: false
# Is linear history required for this branch.
# Defaults to `true`
requiresLinearHistory: true
# List of explicit permissions to add (additive only)
#permissionRules:
# # Team slug to add to repository permissions
# - team: team1
# # Access level required, one of push|pull|admin
# permission: push