You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2026/05/13 10:34:01 UTC

(camel) branch main updated: chore: protect LTS release branches against force push and deletion

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

Croway pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 79efbc233c28 chore: protect LTS release branches against force push and deletion
79efbc233c28 is described below

commit 79efbc233c28202298056aa2c3d87dff3ee18bfa
Author: Croway <fe...@gmail.com>
AuthorDate: Wed May 13 11:56:10 2026 +0200

    chore: protect LTS release branches against force push and deletion
---
 .asf.yaml                                          |  3 ++-
 .../modules/ROOT/pages/release-guide.adoc          | 27 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/.asf.yaml b/.asf.yaml
index fe21ffac3804..9aad73a8546e 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -30,8 +30,9 @@ github:
     - CAMEL
 
   protected_branches:
-    # protect main against force push
     main: {}
+    camel-4.14.x: {}
+    camel-4.18.x: {}
   
 notifications:
   pullrequests: commits@camel.apache.org
diff --git a/docs/user-manual/modules/ROOT/pages/release-guide.adoc b/docs/user-manual/modules/ROOT/pages/release-guide.adoc
index 54782e156b34..ef1421b66cf0 100644
--- a/docs/user-manual/modules/ROOT/pages/release-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/release-guide.adoc
@@ -152,6 +152,33 @@ http://maven.apache.org/guides/mini/guide-encryption.html[password encryption re
 </settings>
 ----
 
+[[ReleaseGuide-CreatingNewLTSBranch]]
+== Creating a New LTS Branch
+
+When creating a new LTS release branch (e.g., `camel-4.22.x`), the following additional steps are required beyond the normal branch creation:
+
+. Add branch protection in `.asf.yaml` (on the `main` branch):
++
+The `.asf.yaml` file in the `main` branch controls GitHub branch protection for the entire repository.
+Add the new branch to the `protected_branches` section to prevent force pushes and accidental branch deletion:
++
+[source,yaml]
+----
+github:
+  protected_branches:
+    main: {}
+    camel-4.14.x: {}
+    camel-4.18.x: {}
+    camel-4.22.x: {}   # <-- add new LTS branch here
+----
++
+NOTE: `.asf.yaml` does not support wildcard patterns — each branch must be listed explicitly.
+Only the `.asf.yaml` on the default branch (`main`) is used for repository-level settings like branch protection.
+
+. Remove branch protection for EOL branches:
++
+When an LTS branch reaches end of life, remove it from the `protected_branches` section in `.asf.yaml`.
+
 [[ReleaseGuide-CreatingTheRelease-Camel]]
 == Creating the Release