Skip to content
Skills Library
DevOps & cloud · Automation

release-backport

/release-backport

Backport a fix to a Legend release branch safely, without dragging maven-release-plugin commits along with it. Use for "backport this to 4.100", "cherry-pick that fix onto the release branch", "get this fix into the release".

Author
finos ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Backport a fix to a Legend release branch safely, without dragging maven-release-plugin commits along with it. Use for "backport this to 4.100", "cherry-pick that fix onto the release branch", "get this fix into the release".

Triggers from the description

backport this to 4.100cherry-pick that fix onto the release branchget this fix into the release
Original author description

Backport a fix to a Legend release branch safely, without dragging maven-release-plugin commits along with it. Use for "backport this to 4.100", "cherry-pick that fix onto the release branch", "get this fix into the release".

How it works

  1. Preferred route: the label
  2. Manual route: cherry-pick
  3. After backporting
Original SKILL.md headings · 60 lines, 382 words
SKILL.md preview
---
name: release-backport
description: Backport a fix to a Legend release branch safely, without dragging maven-release-plugin commits along with it. Use for "backport this to 4.100", "cherry-pick that fix onto the release branch", "get this fix into the release".
---

# Release backport

Getting a fix onto a release branch. The hazard this skill exists for: a
backport that also carries the release-plugin commits, which silently bumps the
whole branch's version and breaks the next release.

That is exactly what happened to legend-engine 4.143.1 — PR #5210 squashed
`prepare release 4.143.1`, `prepare for next development iteration`, and the
actual fix into one commit, moving 602 poms to `4.143.2-SNAPSHOT` as a side
effect. The fix was two lines of JSON.

Read `../release-preflight/references/repo-matrix.md` (relative to this skill's directory) for branch and
label conventions.

## Preferred route: the label

`create-release-branch.yml` creates a label `backport release-legend-release-<stack-version>`
for each release branch. Applying it to a **merged master PR** opens the backport
PR automatically via `backport.yml`:
```bash
gh pr edit <pr> --add-label "backport release-legend-release-<stack-version>"
```
Use this when the fix is a merged master PR. Note the known limitation in
`backport.yml`: adding a second backport label later re-evaluates *all* labels
and posts a spurious failure comment for the already-completed one. Expected, not a bug.

## Manual route: cherry-pick

When the label route does not apply (fix not on master, or the automation failed):

1. **Identify exactly the commits to carry.** Usually one. Inspect before picking:
   ```bash
   git log --format='%H %s%n%b' -5 <source-ref>
   ```
2. **Refuse to carry release-plugin commits.** Before cherry-picking, check both
   subject and body for `[maven-release-plugin]`. If a candidate commit is a
   squash containing them, do **not** pick it whole. Pick the fix alone — either
   from the original unsquashed commit, or by applying just the non-pom paths:
   ```bash
   git show <sha> --stat | grep -v 'pom.xml$'
   ```
3. **Cherry-pick and verify the diff is only the fix:**
   ```bash
   git cherry-pick -x <sha>
   git diff HEAD~1 HEAD --stat | tail -3
   ```
   If any `pom.xml` version lines moved, stop — the backport has picked up a
   version bump and must be redone.
4. **Confirm the branch version is untouched.** The release branch must still sit
   at the `-SNAPSHOT` it had before. For `legend-shared`, check `<revision>`.

## After backporting

The release branch has changed, so anything already built from it is stale. Run
`release-preflight` before dispatching a release from the branch.

If a backport has already landed with release-plugin commits in it, that is
`release-cleanup`'s job — it can strip the version churn and keep the fix.

Versions

The database has no other skills named release-backport.

Database snapshot: 13.11.2026 · package version 7e6d1e633086 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pr-backport
    Backport a merged PR to a release branch. Use this when you need to cherry-pick a fix or feature into an older branch.
  • 100backport
    Backport a merged CocoIndex pull request from main to a release branch (release/X.Y) so that it ships in the next patch release: decide whether it qualifies, cherry-pick with -x in a scratch worktree, resolve conflicts, and land it through a pull request to the release branch.…
  • 100git-backport
    Back-port a specific commit from master to a release branch via cherry-pick. Creates a dedicated backport branch, attempts the cherry-pick, pushes it, and opens a PR by default. Returns to the original branch when done (success or failure). If there are merge conflicts,…
  • 90cherrypick-to-release
    Use when the user asks to cherry-pick, backport, or apply a hotfix to a release branch. Not for merging feature branches or cutting new release branches.
  • 100backport-pr
    Backport a merged Next.js pull request from canary to an LTS release branch (releases/lts/active or releases/lts/maintenance). Use when the user asks to backport, cherry-pick, or open a backport PR from a PR number to an older Next.js version. Covers finding the merged PR…
  • 100hotfix-release
    Create a hotfix release branch, cherry-pick commits, bump the version, and open a draft PR. Use when: hotfix, patch release, cherry-pick to release, hotfix nuget, hotfix npm, release branch fix, backport fix.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.