Skip to content

Commit

Permalink
Add branch protection (#3)
Browse files Browse the repository at this point in the history
* add branch protection

* enable secret scanning

* common definition

* Remove redundant setting.

Signed-off-by: Thomas Neidhart <[email protected]>

---------

Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Thomas Neidhart <[email protected]>
  • Loading branch information
wilyle and netomi authored Oct 18, 2023
1 parent e289266 commit 4777cac
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions otterdog/eclipse-ibeji.jsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet';

local ibejiBranchProtectionRule(branchName) = orgs.newBranchProtectionRule(branchName) {
dismisses_stale_reviews: true,
required_approving_review_count: 1,
};

orgs.newOrg('eclipse-ibeji') {
settings+: {
default_repository_permission: "none",
Expand All @@ -21,24 +26,31 @@ orgs.newOrg('eclipse-ibeji') {
allow_merge_commit: true,
allow_update_branch: false,
delete_branch_on_merge: false,
secret_scanning_push_protection: "disabled",
description: "freyja project",
web_commit_signoff_required: false,
branch_protection_rules: [
ibejiBranchProtectionRule('main'),
],
},
orgs.newRepo('ibeji') {
allow_merge_commit: true,
allow_update_branch: false,
delete_branch_on_merge: false,
description: "ibeji project",
secret_scanning_push_protection: "disabled",
web_commit_signoff_required: false,
branch_protection_rules: [
ibejiBranchProtectionRule('main'),
],
},
orgs.newRepo('ibeji-example-applications') {
allow_merge_commit: true,
allow_update_branch: false,
delete_branch_on_merge: false,
description: "ibeji project example applications and integrations with other components",
secret_scanning_push_protection: "disabled",
web_commit_signoff_required: false,
branch_protection_rules: [
ibejiBranchProtectionRule('main'),
],
},
],
}

0 comments on commit 4777cac

Please sign in to comment.