From 1be9b4e2b1d4c0c9fbb1d7befdfbe549aa550904 Mon Sep 17 00:00:00 2001 From: The Apache Software Foundation Date: Fri, 15 May 2026 14:26:32 -0500 Subject: [PATCH] Set up default protection ruleset for default and release branches --- .asf.yaml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/.asf.yaml b/.asf.yaml index d474f64b1..0273b08af 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -17,14 +17,27 @@ github: description: "Apache Commons Email" homepage: https://commons.apache.org/email/ + 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: commits@commons.apache.org - issues: issues@commons.apache.org - pullrequests: issues@commons.apache.org - jira_options: link label - jobs: notifications@commons.apache.org + commits: commits@commons.apache.org + issues: issues@commons.apache.org + pullrequests: issues@commons.apache.org + jira_options: link label + jobs: notifications@commons.apache.org # commits_bot_dependabot: dependabot@commons.apache.org - issues_bot_dependabot: dependabot@commons.apache.org - pullrequests_bot_dependabot: dependabot@commons.apache.org - issues_bot_codecov-commenter: notifications@commons.apache.org - pullrequests_bot_codecov-commenter: notifications@commons.apache.org + issues_bot_dependabot: dependabot@commons.apache.org + pullrequests_bot_dependabot: dependabot@commons.apache.org + issues_bot_codecov-commenter: notifications@commons.apache.org + pullrequests_bot_codecov-commenter: notifications@commons.apache.org