This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 76edc59e81 Refine AI agent determination of target backport branches
76edc59e81 is described below
commit 76edc59e8117a2fa521376be0a76dd92273e9055
Author: James Netherton <[email protected]>
AuthorDate: Mon Sep 21 11:15:07 2026 +0100
Refine AI agent determination of target backport branches
---
.oss-ai-helper-rules/project-guidelines.md | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/.oss-ai-helper-rules/project-guidelines.md
b/.oss-ai-helper-rules/project-guidelines.md
index fc8de16149..82bc65a8c0 100644
--- a/.oss-ai-helper-rules/project-guidelines.md
+++ b/.oss-ai-helper-rules/project-guidelines.md
@@ -12,14 +12,11 @@ This rule file contains branching, commit, PR, and
task-finding conventions for
- **CI-issue branch:** `ci-issue/<short-slug>`
- **Commit format (ci-issue):** `ci: <brief description>`
- **PR creation:** always
-- **Backport targets:** `main`, plus the **LTS lines only** — currently
`3.33.x` and `3.27.x`. `3.40.x` becomes the next LTS. Camel Quarkus follows the
**Quarkus LTS cadence**, so each LTS line pairs with a Quarkus LTS version
(3.33.x ↔ Quarkus 3.33.x, 3.27.x ↔ Quarkus 3.27.x). Non-LTS release lines are
**not** backport targets, however recently they were released: a backport to
`3.39.x` was declined for exactly this reason (#9084). `3.20.x` and `3.15.x`
are older LTS lines that are no l [...]
+- **Backport targets:** `main`, plus the **active LTS lines only**. Camel
Quarkus follows the **Quarkus LTS cadence**, so each release branch pairs with
the Quarkus stream of the same version. Non-LTS release lines are **not**
backport targets. **Neither a branch's presence in `git branch -r` nor how
recently it was committed to tells you whether it is a backport target.** List
the active LTS branches from the Quarkus registry:
```sh
- # %cd (committer date), not %ad: a cherry-picked backport keeps the original
- # author date, so %ad makes an actively maintained line look stale.
- for b in $(git branch -r | grep -oE 'origin/3\.[0-9]+\.x' | sort -u); do
- printf "%-16s %s\n" "${b#origin/}" "$(git log -1 --format='%cd %s'
--date=short "$b")"
- done | sort -k2 -r
+ curl -s https://registry.quarkus.io/client/platforms \
+ | jq -r '.platforms[] | select(."platform-key"=="io.quarkus.platform") |
.streams[] | select(.lts) | .id + ".x"'
```
- **Backport method:** cherry-pick, preserving the original author and commit
message. The backport lands as a new SHA on the target branch.