From eed53d79c38fb8cfda5dc040d2f29a427ad502ef Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Thu, 22 Feb 2024 11:35:12 -0500 Subject: [PATCH] Loosen branch protection rules to just primary and release ones As recommended here https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/4330#note_1798317 Signed-off-by: Jonah Graham --- otterdog/eclipse-cdt.jsonnet | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/otterdog/eclipse-cdt.jsonnet b/otterdog/eclipse-cdt.jsonnet index 15dac56..b836900 100644 --- a/otterdog/eclipse-cdt.jsonnet +++ b/otterdog/eclipse-cdt.jsonnet @@ -64,7 +64,9 @@ orgs.newOrg('eclipse-cdt') { default_workflow_permissions: "write", }, branch_protection_rules: [ - custom_branch_protection_rule('*'), + custom_branch_protection_rule('main'), + custom_branch_protection_rule('org.eclipse.remote-master'), + custom_branch_protection_rule('cdt_*'), ], }, orgs.newRepo('cdt-infra') { @@ -93,7 +95,8 @@ orgs.newOrg('eclipse-cdt') { actions_can_approve_pull_request_reviews: false, }, branch_protection_rules: [ - custom_branch_protection_rule('*'), + custom_branch_protection_rule('master'), + custom_branch_protection_rule('cdt_lsp_*'), ], }, orgs.newRepo('cdt-new-managedbuild-prototype') {