Skip to content

Commit 3af9c7b

Browse files
committed
Update branch protection policy
1 parent 7b7024e commit 3af9c7b

File tree

1 file changed

+3
-41
lines changed

1 file changed

+3
-41
lines changed

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

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,9 @@ resource: repository
99
configuration:
1010
branchProtectionRules:
1111

12-
- branchNamePattern: dev
13-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
14-
# dev
15-
16-
# Specifies whether this branch can be deleted. boolean
17-
allowsDeletions: false
18-
# Specifies whether forced pushes are allowed on this branch. boolean
19-
allowsForcePushes: false
20-
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
21-
dismissStaleReviews: true
22-
# Specifies whether admins can overwrite branch protection. boolean
23-
isAdminEnforced: false
24-
# Indicates whether "Require a pull request before merging" is enabled. boolean
25-
requiresPullRequestBeforeMerging: true
26-
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
27-
requiredApprovingReviewsCount: 1
28-
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
29-
requireCodeOwnersReview: true
30-
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
31-
requiresCommitSignatures: false
32-
# Are conversations required to be resolved before merging? boolean
33-
requiresConversationResolution: true
34-
# Are merge commits prohibited from being pushed to this branch. boolean
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-
- license/cla
39-
- Build
40-
- lint-api-level
41-
- Analyze (java)
42-
- build
43-
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
44-
requiresStrictStatusChecks: true
45-
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
46-
restrictsPushes: false
47-
# Restrict who can dismiss pull request reviews. boolean
48-
restrictsReviewDismissals: false
49-
50-
- branchNamePattern: master
51-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
52-
# master
12+
- branchNamePattern: main
13+
# This branch pattern applies to the following branches as of 20/05/2024 10:31:16:
14+
# main
5315

5416
# Specifies whether this branch can be deleted. boolean
5517
allowsDeletions: false

0 commit comments

Comments
 (0)