Skip to content

Commit

Permalink
Allow bypassing branch protection for dart_wot (#21)
Browse files Browse the repository at this point in the history
* Allow bypassing branch protection for dart_wot

* Require Pull-Requests for changes to dart_wot

* Require one approval for dart_wot Pull-Requests

* Add BOT_TOKEN

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

---------

Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Thomas Neidhart <[email protected]>
  • Loading branch information
JKRhb and netomi authored May 21, 2024
1 parent b4af1f7 commit 12ae6aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions otterdog/eclipse-thingweb.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,25 @@ orgs.newOrg('eclipse-thingweb') {
default_workflow_permissions: "write",
},
secrets: [
orgs.newRepoSecret('BOT_TOKEN') {
value: "pass:bots/iot.thingweb/github.com/project-token",
},
orgs.newRepoSecret('CODECOV_TOKEN') {
value: "pass:bots/iot.thingweb/codecov.io/codecov-token",
},
],
branch_protection_rules: [
orgs.newBranchProtectionRule('main') {
required_approving_review_count: null,
bypass_pull_request_allowances+: [
"@JKRhb",
],
required_approving_review_count: 1,
required_status_checks+: [
"build (macos-latest)",
"build (ubuntu-latest)",
"build (windows-latest)"
],
requires_pull_request: false,
requires_pull_request: true,
requires_strict_status_checks: true,
},
],
Expand Down

0 comments on commit 12ae6aa

Please sign in to comment.