This is an automated email from the ASF dual-hosted git repository.
FreeAndNil pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net-site.git
The following commit(s) were added to refs/heads/master by this push:
new a7dadd3 Fixes `.asf.yaml` and update protection rules (#3)
a7dadd3 is described below
commit a7dadd3dc7c19a206ecaf035c5ac0da97a6041cc
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Sun May 17 13:11:18 2026 +0200
Fixes `.asf.yaml` and update protection rules (#3)
The automatic PR #2 did create any protection rules, since the update
failed:
https://lists.apache.org/thread/pqf7s9t1y0ctqpyjj8x0j3wtzrx8x5gt
This PR:
- Removes the invalid `profile` key from the `publish` object that
caused the update to fail.
- Adds `asf-site` to the branches protected from deletion and history
rewriting. It also removes the `rel/*` and `release/*` patterns that
don't exist in this repo.
- Adds a rule for `asf-staging`, but only protects it from deletion.
- Disables tags: we don't use them in this repo.
---
.asf.yaml | 34 ++++++++++++++++++++++++++++------
1 file changed, 28 insertions(+), 6 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index f4af9ba..52a115c 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -10,20 +10,42 @@ staging:
subdir: log4net
publish:
- profile:
whoami: asf-site
subdir: log4net
+
github:
rulesets:
+ # Default rules preventing deletion and force-push
- name: "Default Branch Protection"
type: branch
branches:
includes:
- "~DEFAULT_BRANCH"
- - "release/*"
- - "rel/*"
- excludes: []
+ - "asf-site"
+ bypass_teams:
+ - root
+ # Staging branch allows force-pushes
+ - name: "Staging Branch Protection"
+ type: branch
+ branches:
+ includes:
+ - "asf-staging"
+ bypass_teams:
+ - root
+ restrict_force_push: false
+ # There is no convenience notation for `creation` and `update`, so we need
to use the raw rule syntax.
+ #
+ # The raw rules need to follow the syntax given in:
+ #
https://docs.github.com/en/rest/repos/rules?apiVersion=2026-03-10#update-a-repository-ruleset
+ - name: "No tags"
+ type: tag
+ branches:
+ includes:
+ - "*"
bypass_teams:
- root
- restrict_deletion: true
- restrict_force_push: true
+ rules:
+ - type: creation
+ - type: deletion
+ - type: non_fast_forward
+ - type: update