Scaffolding .github/policies/branch-protection.yml

This commit is contained in:
startrightprod[bot]
2023-07-25 18:24:33 +00:00
committed by GitHub
parent e9c4ebe414
commit 57a800f35a

11
.github/policies/branch-protection.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# Documentation for branch policy: https://aka.ms/gim/docs/policy/branch-protection
name: Default branch protection policy
description: Requires one reviewer for merges into main branch
resource: repository
where:
configuration:
branchProtectionRules:
- branchNamePattern: "main"
requiredApprovingReviewsCount: 1
dismissStaleReviews: true