From f1bf16a37cfa80f4684de5cf1c9ac2fc64be433e Mon Sep 17 00:00:00 2001 From: Fabian Gruen Date: Thu, 30 Nov 2023 09:20:41 +0100 Subject: [PATCH 1/2] chore: enable branch protection eclipse-tractusx.github.io main branch --- otterdog/eclipse-tractusx.jsonnet | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/otterdog/eclipse-tractusx.jsonnet b/otterdog/eclipse-tractusx.jsonnet index cc0a049..c8d9aaa 100644 --- a/otterdog/eclipse-tractusx.jsonnet +++ b/otterdog/eclipse-tractusx.jsonnet @@ -228,6 +228,12 @@ orgs.newOrg('eclipse-tractusx') { workflows+: { default_workflow_permissions: "write", }, + branch_protection_rules: [ + orgs.newBranchProtectionRule('main') { + dismisses_stale_reviews: true, + required_approving_review_count: 2, + }, + ], environments: [ orgs.newEnvironment('github-pages') { branch_policies+: [ From f20f70c94d4e04d30d9631d82bb781217812a22d Mon Sep 17 00:00:00 2001 From: Fabian Gruen Date: Thu, 30 Nov 2023 15:36:27 +0100 Subject: [PATCH 2/2] chore: remove reviewer count to use default settings --- otterdog/eclipse-tractusx.jsonnet | 1 - 1 file changed, 1 deletion(-) diff --git a/otterdog/eclipse-tractusx.jsonnet b/otterdog/eclipse-tractusx.jsonnet index c8d9aaa..93f3b75 100644 --- a/otterdog/eclipse-tractusx.jsonnet +++ b/otterdog/eclipse-tractusx.jsonnet @@ -231,7 +231,6 @@ orgs.newOrg('eclipse-tractusx') { branch_protection_rules: [ orgs.newBranchProtectionRule('main') { dismisses_stale_reviews: true, - required_approving_review_count: 2, }, ], environments: [