You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/policies/msgraph-beta-sdk-python-branch-protection.yml
+33-36Lines changed: 33 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -8,40 +8,37 @@ description: Branch protection policy for the msgraph-beta-sdk-python repository
8
8
resource: repository
9
9
configuration:
10
10
branchProtectionRules:
11
+
- branchNamePattern: main
12
+
# This branch pattern applies to the following branches:
13
+
# main
11
14
12
-
13
-
- branchNamePattern: main
14
-
# This branch pattern applies to the following branches:
15
-
# main
16
-
17
-
# Specifies whether this branch can be deleted. boolean
18
-
allowsDeletions: false
19
-
# Specifies whether forced pushes are allowed on this branch. boolean
20
-
allowsForcePushes: false
21
-
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
22
-
dismissStaleReviews: true
23
-
# Specifies whether admins can overwrite branch protection. boolean
24
-
isAdminEnforced: false
25
-
# Indicates whether "Require a pull request before merging" is enabled. boolean
26
-
requiresPullRequestBeforeMerging: true
27
-
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
28
-
requiredApprovingReviewsCount: 1
29
-
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
30
-
requireCodeOwnersReview: true
31
-
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
32
-
requiresCommitSignatures: false
33
-
# Are conversations required to be resolved before merging? boolean
34
-
requiresConversationResolution: true
35
-
# Are merge commits prohibited from being pushed to this branch. boolean
36
-
requiresLinearHistory: false
37
-
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
38
-
requiredStatusChecks:
39
-
- CodeQL
40
-
- Validate code accuracy
41
-
# Require branches to be up to date before merging. This should be false since the repo contains autogenerated files. boolean
42
-
requiresStrictStatusChecks: true
43
-
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
44
-
restrictsPushes: false
45
-
# Restrict who can dismiss pull request reviews. boolean
46
-
restrictsReviewDismissals: false
47
-
15
+
# Specifies whether this branch can be deleted. boolean
16
+
allowsDeletions: false
17
+
# Specifies whether forced pushes are allowed on this branch. boolean
18
+
allowsForcePushes: false
19
+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
20
+
dismissStaleReviews: true
21
+
# Specifies whether admins can overwrite branch protection. boolean
22
+
isAdminEnforced: false
23
+
# Indicates whether "Require a pull request before merging" is enabled. boolean
24
+
requiresPullRequestBeforeMerging: true
25
+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
26
+
requiredApprovingReviewsCount: 1
27
+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
28
+
requireCodeOwnersReview: true
29
+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
30
+
requiresCommitSignatures: false
31
+
# Are conversations required to be resolved before merging? boolean
32
+
requiresConversationResolution: true
33
+
# Are merge commits prohibited from being pushed to this branch. boolean
34
+
requiresLinearHistory: false
35
+
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
36
+
requiredStatusChecks:
37
+
- CodeQL
38
+
- check-build-matrix
39
+
# Require branches to be up to date before merging. This should be false since the repo contains autogenerated files. boolean
40
+
requiresStrictStatusChecks: true
41
+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
42
+
restrictsPushes: false
43
+
# Restrict who can dismiss pull request reviews. boolean
0 commit comments