From aa4b2dca57dcbc1a9c3a385441e7e82cc9e84273 Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Wed, 27 Nov 2024 17:16:07 +0000 Subject: [PATCH] Set release branch protection with approve reviews 2 Signed-off-by: Andrew Leonard --- otterdog/adoptium.jsonnet | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/otterdog/adoptium.jsonnet b/otterdog/adoptium.jsonnet index 2a27d70..e96785a 100644 --- a/otterdog/adoptium.jsonnet +++ b/otterdog/adoptium.jsonnet @@ -408,6 +408,9 @@ orgs.newOrg('adoptium') { ], branch_protection_rules: [ orgs.newBranchProtectionRule('master'), + orgs.newBranchProtectionRule('v20*') { + required_approving_review_count: 2, + }, ], }, newTemurinRepo('containers') { @@ -619,6 +622,9 @@ orgs.newOrg('adoptium') { ], branch_protection_rules: [ orgs.newBranchProtectionRule('master'), + orgs.newBranchProtectionRule('v20*') { + required_approving_review_count: 2, + }, ], custom_properties+: { eclipse_project: "adoptium.temurin", @@ -742,6 +748,9 @@ orgs.newOrg('adoptium') { ], branch_protection_rules: [ orgs.newBranchProtectionRule('master'), + orgs.newBranchProtectionRule('v20*') { + required_approving_review_count: 2, + }, ], }, newTemurinRepo('temurin-cpe-generator') {