Skip to content

Commit 3ceef4e

Browse files
MIchaelMainergavinbarron
authored andcommitted
- add branch protection policy (#2253)
Co-authored-by: Michael Mainer <[email protected]>
1 parent 52efa2e commit 3ceef4e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
name: branch_protection_sdks
5+
description: Organization branch protection policy for Microsoft Graph Toolkit repository
6+
resource: repository
7+
configuration:
8+
branchProtectionRules:
9+
- branchNamePattern: next/*
10+
requiredApprovingReviewsCount:
11+
min: 1
12+
# Must have a CODEOWNER approve for the PR to be merged.
13+
requireCodeOwnersReview: true
14+
15+
# Dismiss stale pull request approvals when new commits are pushed
16+
dismissStaleReviews: true
17+
18+
# Require conversation resolution before merging. Address all concerns, and resolve in the GitHub PR UI.
19+
requiresConversationResolution: true
20+
21+
# Require status checks to pass before merging. TODO: this value should be true, we should work to support this.
22+
# Used with the requiredStatusChecks setting to specify which checks must pass for the PR to be merged.
23+
requiresStrictStatusChecks: true
24+
25+
requiredStatusChecks:
26+
- GitOps/AdvancedSecurity
27+
- license/cla
28+
- Build pr
29+
30+
# TODO: all commits should be signed. We need to get everyone signing their commits.
31+
requiresCommitSignatures: false

0 commit comments

Comments
 (0)