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
{{ message }}
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
* Require status checks to pass before merging
* Require code owner approvals of all changes in main/master and dev branches
* Require re-approval after new commits
Copy file name to clipboardExpand all lines: .github/policies/msgraph-sdk-ruby-branch-protection.yml
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,9 @@ configuration:
33
33
requiresConversationResolution: true
34
34
# Are merge commits prohibited from being pushed to this branch. boolean
35
35
requiresLinearHistory: false
36
+
# 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
37
+
requiredStatusChecks:
38
+
- CodeQL
36
39
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
37
40
requiresStrictStatusChecks: true
38
41
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -49,17 +52,24 @@ configuration:
49
52
# Specifies whether forced pushes are allowed on this branch. boolean
50
53
allowsForcePushes: false
51
54
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
52
-
dismissStaleReviews: false
55
+
dismissStaleReviews: true
53
56
# Specifies whether admins can overwrite branch protection. boolean
54
57
isAdminEnforced: false
58
+
# Indicates whether "Require a pull request before merging" is enabled. boolean
59
+
requiresPullRequestBeforeMerging: true
60
+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
61
+
requiredApprovingReviewsCount: 1
55
62
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
56
-
requireCodeOwnersReview: false
63
+
requireCodeOwnersReview: true
57
64
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
58
65
requiresCommitSignatures: false
59
66
# Are conversations required to be resolved before merging? boolean
60
-
requiresConversationResolution: false
67
+
requiresConversationResolution: true
61
68
# Are merge commits prohibited from being pushed to this branch. boolean
62
69
requiresLinearHistory: false
70
+
# 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
71
+
requiredStatusChecks:
72
+
- CodeQL
63
73
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
64
74
requiresStrictStatusChecks: true
65
75
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
0 commit comments