Skip to content

A programming framework for agentic AI

Scaffolding .github/policies/branch-protection.yml

startrightprod[bot]57a800f35afc
diff --git a/.github/policies/branch-protection.yml b/.github/policies/branch-protection.yml
new file mode 100644
index 000000000..ae5a947b2
--- /dev/null
+++ b/.github/policies/branch-protection.yml
@@ -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