Skip to content

Commit

Permalink
Revert "Create / update consistent bpr for all repos (#6)"
Browse files Browse the repository at this point in the history
This reverts commit d844c52.
  • Loading branch information
netomi authored Sep 19, 2023
1 parent d844c52 commit 6b61ca6
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions otterdog/eclipse-cdt.jsonnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet';

local custom_branch_protection_rule(pattern) =
orgs.newBranchProtectionRule(pattern) {
required_approving_review_count: 0,
};

orgs.newOrg('eclipse-cdt') {
settings+: {
billing_email: "[email protected]",
Expand Down Expand Up @@ -43,9 +38,6 @@ orgs.newOrg('eclipse-cdt') {
has_wiki: false,
homepage: "",
web_commit_signoff_required: false,
branch_protection_rules: [
custom_branch_protection_rule('main'),
],
},
orgs.newRepo('cdt') {
allow_auto_merge: true,
Expand All @@ -58,8 +50,14 @@ orgs.newOrg('eclipse-cdt') {
homepage: "http://eclipse.org/cdt",
web_commit_signoff_required: false,
branch_protection_rules: [
custom_branch_protection_rule('main'),
custom_branch_protection_rule('cdt_*'),
orgs.newBranchProtectionRule('*') {
bypass_pull_request_allowances+: [
"@jonahgraham"
],
required_approving_review_count: 0,
requires_status_checks: false,
requires_strict_status_checks: true,
},
],
},
orgs.newRepo('cdt-infra') {
Expand All @@ -69,7 +67,9 @@ orgs.newOrg('eclipse-cdt') {
has_wiki: false,
web_commit_signoff_required: false,
branch_protection_rules: [
custom_branch_protection_rule('master'),
orgs.newBranchProtectionRule('master') {
required_approving_review_count: 0,
},
],
},
orgs.newRepo('cdt-lsp') {
Expand All @@ -79,17 +79,19 @@ orgs.newOrg('eclipse-cdt') {
description: "Eclipse CDT™ LSP Extensions for CDT",
has_discussions: true,
web_commit_signoff_required: false,
branch_protection_rules: [
custom_branch_protection_rule('master'),
],
},
orgs.newRepo('cdt-new-managedbuild-prototype') {
archived: true,
default_branch: "master",
description: "Prototype of new Managed Build system for Eclipse CDT",
web_commit_signoff_required: false,
branch_protection_rules: [
custom_branch_protection_rule('master'),
orgs.newBranchProtectionRule('master') {
required_approving_review_count: null,
requires_pull_request: false,
requires_status_checks: false,
requires_strict_status_checks: true,
},
],
},
orgs.newRepo('cdt-vscode') {
Expand All @@ -99,7 +101,12 @@ orgs.newOrg('eclipse-cdt') {
homepage: "",
web_commit_signoff_required: false,
branch_protection_rules: [
custom_branch_protection_rule('master'),
orgs.newBranchProtectionRule('master') {
required_approving_review_count: null,
requires_pull_request: false,
requires_status_checks: false,
requires_strict_status_checks: true,
},
],
},
],
Expand Down

0 comments on commit 6b61ca6

Please sign in to comment.