From d4fa7625137b69c0d351741cd717f84f0fa32db5 Mon Sep 17 00:00:00 2001 From: Holger Dormann Date: Fri, 23 Aug 2024 14:33:49 +0200 Subject: [PATCH] Add branch protection rule for release branches --- otterdog/eclipse-ankaios.jsonnet | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/otterdog/eclipse-ankaios.jsonnet b/otterdog/eclipse-ankaios.jsonnet index ff473cd..59c8853 100644 --- a/otterdog/eclipse-ankaios.jsonnet +++ b/otterdog/eclipse-ankaios.jsonnet @@ -41,6 +41,19 @@ orgs.newOrg('eclipse-ankaios') { ], requires_conversation_resolution: true, }, + orgs.newBranchProtectionRule('release-**') { + required_approving_review_count: 1, + required_status_checks+: [ + "Build and run system tests Linux amd64", + "Run unit tests Linux amd64", + "Build Linux amd64 debian package", + "Build Linux arm64 debian package", + "Build requirements tracing", + "Check if documentation has changed", + "Deploy documentation", + ], + requires_conversation_resolution: true, + }, ], environments: [ orgs.newEnvironment('github-pages') {