From 1d42fe2099cb22644cd42ca63eac40b598f1cf33 Mon Sep 17 00:00:00 2001 From: sameer6989 Date: Thu, 27 Mar 2025 10:11:29 +0100 Subject: [PATCH] Update branch protection rule to cover all the branches Update branch protection rule to cover all the branches Disable force pushes to branches Signed-off-by: sameer6989 --- otterdog/eclipse-openbsw.jsonnet | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otterdog/eclipse-openbsw.jsonnet b/otterdog/eclipse-openbsw.jsonnet index edbadaa..8a36a88 100644 --- a/otterdog/eclipse-openbsw.jsonnet +++ b/otterdog/eclipse-openbsw.jsonnet @@ -45,12 +45,13 @@ orgs.newOrg('automotive.openbsw', 'eclipse-openbsw') { gh_pages_source_branch: "gh-pages", gh_pages_source_path: "/", branch_protection_rules: [ - orgs.newBranchProtectionRule('main') { + orgs.newBranchProtectionRule('*') { requires_pull_request: true, required_approving_review_count: 0, dismisses_stale_reviews: true, requires_code_owner_reviews: false, require_last_push_approval: false, + allows_force_pushes: false, }, ], },