This is an automated email from the ASF dual-hosted git repository.
JingsongLi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-rust.git
The following commit(s) were added to refs/heads/main by this push:
new b201cfa [INFRA] Set up default rulesets for default and release
branches (#322)
b201cfa is described below
commit b201cfa1a4e9540f1d402877f4468be6903e12fb
Author: The Apache Software Foundation <[email protected]>
AuthorDate: Mon Jun 1 21:40:39 2026 -0500
[INFRA] Set up default rulesets for default and release branches (#322)
---
.asf.yaml | 15 ++++++++++++++-
scripts/validate_asf_yaml.py | 1 +
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.asf.yaml b/.asf.yaml
index 6373e2b..33ebc90 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -37,10 +37,23 @@ github:
discussions: true
wiki: false
projects: false
- protected_branches: ~
+ protected_branches:
collaborators:
- Xuanwo
+ 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]
diff --git a/scripts/validate_asf_yaml.py b/scripts/validate_asf_yaml.py
index c5534e7..2a80e84 100644
--- a/scripts/validate_asf_yaml.py
+++ b/scripts/validate_asf_yaml.py
@@ -43,6 +43,7 @@ VALID_GITHUB_KEYS = {
"features",
"enabled_merge_buttons",
"protected_branches",
+ "rulesets",
"collaborators",
"autolinks",
"environments",