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

meonkeys pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new d63a617610 Use ruleset for protecting important branches
d63a617610 is described below

commit d63a61761033d1a7b6e4caa935ed675f8c843356
Author: Adam Monsen <[email protected]>
AuthorDate: Wed May 13 08:46:05 2026 -0700

    Use ruleset for protecting important branches
    
    With this change, develop gains restrict_deletion and
    restrict_force_push, following guidance from ASF around proper default
    branch hygiene. Branches matching release/* and maintenance/* gain all
    the listed protections.
    
    This is an alternative to using a protected_branches stanza, and allows
    us to apply the same rules to multiple branches without duplication.
    
    See https://github.com/apache/infrastructure-asfyaml#rulesets .
    
    These changes strengthen and do not conflict with our current workflows.
    They build on FSIP-7
    ( 
https://cwiki.apache.org/confluence/display/FINERACT/FSIP-7%3A+traditional+merge+strategy
 ).
    
    Note the temporary change so I can test protections against
    protected-branch-test. Once I'm done testing I'll delete that.
---
 .asf.yaml | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 4bffd993f9..13815dbda0 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -19,10 +19,20 @@ github:
     merge: true
     squash: false
     rebase: false
-  protected_branches:
-    develop:
-      required_linear_history: false
+  rulesets:
+    - name: "Branch Protection"
+      type: branch
+      branches:
+        includes:
+          - "develop"
+          - "release/*"
+          - "maintenance/*"
+          # temporary (to test protections below)
+          - "protected-branch-test"
+      restrict_deletion: true
+      restrict_force_push: true
       required_signatures: true
+      required_linear_history: false
       required_conversation_resolution: true
 notifications:
   commits: [email protected]

Reply via email to