What problem does it solve?
Maintaining long-term support (LTS) release branches requires manually finding fixed issues, locating their merged pull requests, applying diffs, and committing each change to the release branch. This Skill automates that repetitive backporting workflow for the dotCMS/core repository while preventing partial or duplicate backports.
Core Features & Use Cases
- Automated Issue Discovery: Fetches all closed GitHub issues labeled "LTS: Next Patch" and detects which ones are already recorded in hotfix_tracking.md.
- Linked PR Resolution: Uses the GitHub GraphQL API and PR search to find every merged pull request linked to an issue, including companion PRs, and applies their diffs in order.
- Safe Patch Application: Performs dry-run checks, 3-way merge fallbacks, and per-file patch splitting, pausing for manual resolution whenever a patch cannot be applied cleanly.
- Use Case: A maintainer on the release-25.07.10_lts branch runs the skill to backport all pending LTS patches; each completed issue is committed with a standardized message, pushed, and logged in hotfix_tracking.md, ending with a summary report.
Quick Start
Run an LTS backport for the current dotCMS release branch, or specify a version such as 24.12.27 when not on an LTS branch.