Skip to content

Commit c903ec8

Browse files
Set up default protection ruleset for default and release branches (#222)
* Set up default protection ruleset for default and release branches * Drop the branches block from the protection ruleset No release/* or rel/* branches exist in this repo, and .asf.yaml already defaults branches to ~DEFAULT_BRANCH when the key is omitted, so the block only restated the default. * Do not run Copilot review on drafts or on every push Copilot review credits are limited; reviewers can trigger a review by hand when one is wanted. --------- Co-authored-by: The Apache Software Foundation <root-asf-gitbox-commits@apache.org>
1 parent d50ae40 commit c903ec8

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.asf.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ github:
3030
protected_branches:
3131
main: {}
3232

33+
rulesets:
34+
- name: "Default Branch Protection"
35+
type: branch
36+
bypass_teams:
37+
- root
38+
restrict_deletion: true
39+
restrict_force_push: true
40+
3341
copilot_code_review:
3442
enabled: true
35-
review_drafts: true
36-
review_on_push: true
43+
review_drafts: false
44+
review_on_push: false

0 commit comments

Comments
 (0)