Skip to content

Commit

Permalink
C++ Repos: adding release branch protection (#65)
Browse files Browse the repository at this point in the history
Release branches were not protected, and so CI pass was not enforced.
This change enables branch protection for the pattern used in up-cpp
release branches and sets an approval threshold for each category of
branch based on the relative "stability" of the branch/repo.
  • Loading branch information
gregmedd authored Jul 30, 2024
1 parent e0659c7 commit a1ccd64
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion otterdog/eclipse-uprotocol.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,19 @@ orgs.newOrg('eclipse-uprotocol') {
web_commit_signoff_required: false,
branch_protection_rules: [
orgs.newBranchProtectionRule('main') {
required_approving_review_count: 0,
required_approving_review_count: 1,
required_status_checks+: [
"CI status checks"
],
},
orgs.newBranchProtectionRule('v*.*_up-v*.*.*') {
required_approving_review_count: 1,
required_status_checks+: [
"CI status checks"
],
},
orgs.newBranchProtectionRule('up-v1.5.7') {
required_approving_review_count: 2,
required_status_checks+: [
"CI status checks"
],
Expand Down Expand Up @@ -455,6 +467,12 @@ orgs.newOrg('eclipse-uprotocol') {
"CI status checks"
],
},
orgs.newBranchProtectionRule('v*.*_up-v*.*.*') {
required_approving_review_count: 1,
required_status_checks+: [
"CI status checks"
],
},
],
},
orgs.newRepo('up-transport-zenoh-python') {
Expand Down

0 comments on commit a1ccd64

Please sign in to comment.