Protect the openbao main branch
Add branch protection to the openbao fork repository so main is protected: only the owner may push directly and other changes must land via a pull request that passes the fork build pipeline. - Add branch_protection for main (whitelist-push to the owner; require the ci/woodpecker/pr/build status check on PRs); set squash as the default merge
This commit is contained in:
@@ -2,3 +2,14 @@ description: "Private fork of OpenBao adding per-namespace raft, cross-cluster p
|
||||
private: true
|
||||
default_branch: "main"
|
||||
default_delete_branch_after_merge: true
|
||||
default_merge_style: "squash"
|
||||
branch_protection:
|
||||
- rule_name: "main"
|
||||
# Whitelist-push: the owner can push main directly (needed for the initial
|
||||
# push and the fork's maintenance workflow); everyone else must open a PR.
|
||||
enable_push: true
|
||||
push_whitelist_users:
|
||||
- "unkinben"
|
||||
# PRs to main must pass the fork build/vet pipeline before merge.
|
||||
status_check_contexts:
|
||||
- "ci/woodpecker/pr/build"
|
||||
|
||||
Reference in New Issue
Block a user