Skip to content

Commit efd26e8

Browse files
Support Branch Protection
Any changes that are made to the support/5.x.x branch, as unlikely as they may be, should be checked and validated.
1 parent 59581c1 commit efd26e8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,39 @@ configuration:
4646
# Restrict who can dismiss pull request reviews. boolean
4747
restrictsReviewDismissals: false
4848

49+
- branchNamePattern: support/5.x.x
50+
# This branch pattern applies to the following branches as of 06/12/2023 10:31:15:
51+
# dev
52+
53+
# Specifies whether this branch can be deleted. boolean
54+
allowsDeletions: false
55+
# Specifies whether forced pushes are allowed on this branch. boolean
56+
allowsForcePushes: false
57+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
58+
dismissStaleReviews: true
59+
# Specifies whether admins can overwrite branch protection. boolean
60+
isAdminEnforced: false
61+
# Indicates whether "Require a pull request before merging" is enabled. boolean
62+
requiresPullRequestBeforeMerging: true
63+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
64+
requiredApprovingReviewsCount: 1
65+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
66+
requireCodeOwnersReview: true
67+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
68+
requiresCommitSignatures: false
69+
# Are conversations required to be resolved before merging? boolean
70+
requiresConversationResolution: true
71+
# Are merge commits prohibited from being pushed to this branch. boolean
72+
requiresLinearHistory: false
73+
# 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
74+
requiredStatusChecks:
75+
- Analyze (java)
76+
- lint-api-level
77+
- license/cla
78+
- build
79+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
80+
requiresStrictStatusChecks: true
81+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
82+
restrictsPushes: false
83+
# Restrict who can dismiss pull request reviews. boolean
84+
restrictsReviewDismissals: false

0 commit comments

Comments
 (0)