Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit ea6832b

Browse files
Chore: update branch protection rules (#141)
* 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
1 parent 0f90465 commit ea6832b

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/policies/msgraph-sdk-ruby-branch-protection.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ configuration:
3333
requiresConversationResolution: true
3434
# Are merge commits prohibited from being pushed to this branch. boolean
3535
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
3639
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
3740
requiresStrictStatusChecks: true
3841
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -49,17 +52,24 @@ configuration:
4952
# Specifies whether forced pushes are allowed on this branch. boolean
5053
allowsForcePushes: false
5154
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
52-
dismissStaleReviews: false
55+
dismissStaleReviews: true
5356
# Specifies whether admins can overwrite branch protection. boolean
5457
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
5562
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
56-
requireCodeOwnersReview: false
63+
requireCodeOwnersReview: true
5764
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
5865
requiresCommitSignatures: false
5966
# Are conversations required to be resolved before merging? boolean
60-
requiresConversationResolution: false
67+
requiresConversationResolution: true
6168
# Are merge commits prohibited from being pushed to this branch. boolean
6269
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
6373
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
6474
requiresStrictStatusChecks: true
6575
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.

0 commit comments

Comments
 (0)