Skip to content

Commit

Permalink
Branch protection and topics (#6)
Browse files Browse the repository at this point in the history
* Update branch protection rules for main source repos

Signed-off-by: Bernd Hufmann <[email protected]>

* Add topics to trace compass main repo

Signed-off-by: Bernd Hufmann <[email protected]>

---------

Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann authored Feb 20, 2024
1 parent a77b9c8 commit 809d9c1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions otterdog/eclipse-tracecompass.jsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet';

local tc_default_branch_protection_rule(pattern) =
orgs.newBranchProtectionRule(pattern) {
dismisses_stale_reviews: true,
is_admin_enforced: true,
required_approving_review_count: 1,
requires_status_checks: false,
requires_strict_status_checks: true,
};

orgs.newOrg('eclipse-tracecompass') {
settings+: {
dependabot_security_updates_enabled_for_new_repositories: false,
Expand Down Expand Up @@ -29,12 +38,35 @@ orgs.newOrg('eclipse-tracecompass') {
delete_branch_on_merge: false,
secret_scanning: "disabled",
secret_scanning_push_protection: "disabled",
topics+: [
"profiling",
"trace-compass",
"trace",
"trace-viewer",
"trace-visualization"
],
web_commit_signoff_required: false,
workflows+: {
default_workflow_permissions: "write",
},
branch_protection_rules: [
tc_default_branch_protection_rule('master')
],
},
orgs.newRepo('trace-event-logger') {
allow_merge_commit: true,
allow_update_branch: false,
default_branch: "main",
delete_branch_on_merge: false,
secret_scanning: "disabled",
secret_scanning_push_protection: "disabled",
web_commit_signoff_required: false,
workflows+: {
default_workflow_permissions: "read",
},
branch_protection_rules: [
tc_default_branch_protection_rule('main')
],
},
orgs.newRepo('tracecompass-infra') {
allow_merge_commit: true,
Expand All @@ -59,6 +91,9 @@ orgs.newOrg('eclipse-tracecompass') {
workflows+: {
default_workflow_permissions: "write",
},
branch_protection_rules: [
tc_default_branch_protection_rule('master')
],
},
orgs.newRepo('tracecompass-website') {
allow_merge_commit: true,
Expand All @@ -71,6 +106,9 @@ orgs.newOrg('eclipse-tracecompass') {
workflows+: {
default_workflow_permissions: "write",
},
branch_protection_rules: [
tc_default_branch_protection_rule('master')
],
},
],
}

0 comments on commit 809d9c1

Please sign in to comment.