From 796dd6260611f041aecd8e4b2207c6122965e83d Mon Sep 17 00:00:00 2001 From: Cristiano Aguzzi Date: Fri, 9 Feb 2024 23:14:53 +0100 Subject: [PATCH] chore: add branch protection rules for node-wot (#14) * chore: add branch protection rules for node-wot Signed-off-by: Cristiano Aguzzi * fix: node-wot protection branch rule is using master Signed-off-by: Cristiano Aguzzi --------- Signed-off-by: Cristiano Aguzzi --- otterdog/eclipse-thingweb.jsonnet | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/otterdog/eclipse-thingweb.jsonnet b/otterdog/eclipse-thingweb.jsonnet index c086d42..802f4c3 100644 --- a/otterdog/eclipse-thingweb.jsonnet +++ b/otterdog/eclipse-thingweb.jsonnet @@ -90,6 +90,11 @@ orgs.newOrg('eclipse-thingweb') { "web-of-things", "wot" ], + branch_protection_rules : [ + orgs.newBranchProtectionRule('master') { + required_approving_review_count: 2 + } + ], web_commit_signoff_required: false, workflows+: { default_workflow_permissions: "write",