Skip to content

Commit

Permalink
chore: enable branch protection rule and other configurations on digi…
Browse files Browse the repository at this point in the history
…tal-product-pass main branch (#86)

* chore(branch-protection): enable branch protection rule digital-product-pass main branch

* Add github-pages environment

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

---------

Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Thomas Neidhart <[email protected]>
  • Loading branch information
saudkhan116 and netomi authored Jul 1, 2024
1 parent 3784be6 commit ac57a1f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion otterdog/eclipse-tractusx.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,33 @@ orgs.newOrg('eclipse-tractusx') {
allow_merge_commit: true,
allow_update_branch: false,
delete_branch_on_merge: false,
dependabot_security_updates_enabled: true,
has_discussions: true,
web_commit_signoff_required: false,
description: "digital product pass",
private_vulnerability_reporting_enabled: true,
web_commit_signoff_required: false,
gh_pages_build_type: "legacy",
gh_pages_source_branch: "gh-pages",
gh_pages_source_path: "/",
homepage: "https://github.com/eclipse-tractusx/digital-product-pass",
workflows+: {
default_workflow_permissions: "write",
},
environments: [
orgs.newEnvironment('github-pages') {
branch_policies+: [
"gh-pages"
],
deployment_branch_policy: "selected",
},
],
branch_protection_rules: [
orgs.newBranchProtectionRule('main') {
required_approving_review_count: 1,
requires_status_checks: false,
requires_strict_status_checks: true,
},
]
},
orgs.newRepo('eclipse-tractusx.github.io') {
allow_merge_commit: true,
Expand Down

0 comments on commit ac57a1f

Please sign in to comment.