From 57a800f35afcab44e44e2bb603d09f8ccb138f62 Mon Sep 17 00:00:00 2001 From: "startrightprod[bot]" <107001787+startrightprod[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 18:24:33 +0000 Subject: [PATCH] Scaffolding .github/policies/branch-protection.yml --- .github/policies/branch-protection.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/policies/branch-protection.yml 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