Skip to content

Commit

Permalink
chore: enable branch protection and deletion after merge (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszbarwicki authored Jun 21, 2024
1 parent 3cccf40 commit 48cd1e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion otterdog/eclipse-tractusx.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ orgs.newOrg('eclipse-tractusx') {
orgs.newRepo('api-hub') {
allow_merge_commit: true,
allow_update_branch: false,
delete_branch_on_merge: false,
delete_branch_on_merge: true,
gh_pages_build_type: "legacy",
gh_pages_source_branch: "gh-pages",
gh_pages_source_path: "/",
Expand All @@ -110,6 +110,12 @@ orgs.newOrg('eclipse-tractusx') {
workflows+: {
default_workflow_permissions: "write",
},
branch_protection_rules: [
orgs.newBranchProtectionRule('main') {
dismisses_stale_reviews: true,
required_approving_review_count: 1,
},
],
environments: [
orgs.newEnvironment('github-pages') {
branch_policies+: [
Expand Down

0 comments on commit 48cd1e9

Please sign in to comment.