Skip to content

Commit b8bbb8c

Browse files
Branch Protection for support/2.x.x
1 parent 39194a2 commit b8bbb8c

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.github/policies/msgraph-sdk-java-core-branch-protection.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,41 @@ configuration:
8484
restrictsPushes: false
8585
# Restrict who can dismiss pull request reviews. boolean
8686
restrictsReviewDismissals: false
87+
88+
- branchNamePattern: support/2.x.x
89+
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
90+
# dev
91+
92+
# Specifies whether this branch can be deleted. boolean
93+
allowsDeletions: false
94+
# Specifies whether forced pushes are allowed on this branch. boolean
95+
allowsForcePushes: false
96+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
97+
dismissStaleReviews: true
98+
# Specifies whether admins can overwrite branch protection. boolean
99+
isAdminEnforced: false
100+
# Indicates whether "Require a pull request before merging" is enabled. boolean
101+
requiresPullRequestBeforeMerging: true
102+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
103+
requiredApprovingReviewsCount: 1
104+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
105+
requireCodeOwnersReview: true
106+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
107+
requiresCommitSignatures: false
108+
# Are conversations required to be resolved before merging? boolean
109+
requiresConversationResolution: true
110+
# Are merge commits prohibited from being pushed to this branch. boolean
111+
requiresLinearHistory: false
112+
# 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
113+
requiredStatusChecks:
114+
- license/cla
115+
- Build
116+
- lint-api-level
117+
- Analyze (java)
118+
- build
119+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
120+
requiresStrictStatusChecks: true
121+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
122+
restrictsPushes: false
123+
# Restrict who can dismiss pull request reviews. boolean
124+
restrictsReviewDismissals: false

0 commit comments

Comments
 (0)