Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#
# Additional non-standard features
#
meta:
environments:
- github_rulesets

github:
description: "Apache Commons Parent"
homepage: https://commons.apache.org/parent/
Expand All @@ -28,3 +35,28 @@ notifications:
pullrequests_bot_dependabot: dependabot@commons.apache.org
issues_bot_codecov-commenter: notifications@commons.apache.org
pullrequests_bot_codecov-commenter: notifications@commons.apache.org

# Clear Protected Branches configuration: it is replaced by GitHub Rulesets
protected_branches: ~

rulesets:
# Use minimum level of protection: restrict deletion and force pushes.
- name: "Branch protection"
type: branch
branches:
includes:
- "~DEFAULT_BRANCH"
# Use raw rules, until a convenience notation for `restrict_update` is introduced.
# See: https://github.com/apache/infrastructure-asfyaml/issues/96
#
# 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: "Tag protection"
type: tag
branches:
includes:
- "rel/*"
rules:
- type: deletion
- type: non_fast_forward
- type: update
Loading