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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8c7308226 Branch rulesets to block force pushes and prevent deletions 
on main branches
8c7308226 is described below

commit 8c730822620f2e5a9e7e64443483127f438e51b7
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Sep 18 05:25:52 2026 -0700

    Branch rulesets to block force pushes and prevent deletions on main
    branches
---
 .asf.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/.asf.yaml b/.asf.yaml
index d3643eda3..33ee53eb5 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -28,3 +28,18 @@ notifications:
     pullrequests_bot_dependabot: [email protected]
     issues_bot_codecov-commenter: [email protected]
     pullrequests_bot_codecov-commenter: [email protected]
+
+# Branch rulesets to block force pushes and prevent deletions on main branches
+branch_rulesets:
+  - name: "Protect Main Branches"
+    target: "branch"
+    enforcement: "active" # Options: active, evaluate, disabled
+    conditions:
+      ref_name:
+        include:
+          - "refs/heads/main"
+          - "refs/heads/master"
+        exclude: []
+    rules:
+      - type: "deletion" # Prevents branch deletions
+      - type: "non_fast_forward" # Blocks force pushes completely

Reply via email to