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

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new bec71bd42 asf.yaml: Add branch protection ruleset
bec71bd42 is described below

commit bec71bd4250702043abe34309471a2085f009a47
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 21 17:21:08 2026 +0200

    asf.yaml: Add branch protection ruleset
    
    Protect default and release (*_dev) branches against deletion and
    force push, and require linear history on them. This is similar to
    default ruleset proposed by ASF Infrastructure, with release branches
    pattern adjusted to names used in this repository.
    
    Assisted-by: Claude:claude-opus-5-5
---
 .asf.yaml | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index ab6aa571e..c7ca7f774 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -24,6 +24,19 @@ notifications:
 
 github:
   enabled_merge_buttons:
-    squash:  true
-    merge:   false
-    rebase:  true
+    squash: true
+    merge: false
+    rebase: true
+  rulesets:
+    - name: "Default Branch Protection"
+      type: branch
+      branches:
+        includes:
+          - "~DEFAULT_BRANCH"
+          - "*_dev"
+        excludes: []
+      bypass_teams:
+        - root
+      restrict_deletion: true
+      restrict_force_push: true
+      required_linear_history: true

Reply via email to