This is an automated email from the ASF dual-hosted git repository.

sebbASF pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git

commit cc474108e2780b76214a5f7d9f1c63da1178f46e
Merge: 65692bf6 667684f3
Author: Sebb <[email protected]>
AuthorDate: Sun Nov 8 17:06:32 2026 +0000

    Merge pull request #423 from 
apache/infrastructure-ruleset-bot/default-branch-protection
    
    [INFRA] Set up default rulesets for default and release branches

 .asf.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --cc .asf.yaml
index 83733daa,5816cc51..d424cc89
--- a/.asf.yaml
+++ b/.asf.yaml
@@@ -16,30 -16,21 +16,44 @@@
  github:
    description: Apache Commons CLI
    homepage: http://commons.apache.org/cli/
 +  autolink_jira:
 +    - CLI
 +  
 +  pull_requests:
 +    # allow auto-merge
 +    allow_auto_merge: false
 +    # enable updating head branches of pull requests
 +    allow_update_branch: true
 +    # auto-delete head branches after being merged
 +    del_branch_on_merge: true
 +
 +  rulesets:
 +    - name: "Protect Main Branches"
 +      type: branch
 +      branches:
 +        includes:
 +          - main
 +          - master
 +        excludes: []
 +      bypass_teams:
 +        - root
 +      restrict_deletion: true
 +      restrict_force_push: true
  
+   rulesets:
+     - name: "Default Branch Protection"
+       type: branch
+       branches:
+         includes:
+           - "~DEFAULT_BRANCH"
+           - "release/*"
+           - "rel/*"
+         excludes: []
+       bypass_teams:
+         - root
+       restrict_deletion: true
+       restrict_force_push: true
+ 
  notifications:
      commits:      [email protected]
      issues:       [email protected]

Reply via email to