Backport docs/examples changes to a pre-existing ZenML release. Use when changes merged to `develop` need to be reflected in a live release version. Triggers in
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-zenml-backport-88222a06ad97 ,按照其中的说明把「zenml-backport」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Backporting applies changes from develop to a live release. Only docs and examples can be backported (not src/ changes, which require a new release).
Before starting, gather:
0.5.7)develop to backport (get via git log origin/develop)git fetch
git checkout release/<VERSION>
git pull
git checkout -b backport/<descriptive-name>
For each commit SHA from develop:
git cherry-pick -x <commit-sha>
The -x flag adds a reference to the original commit in the cherry-pick message.
If conflicts occur, resolve them, then:
git add .
git cherry-pick --continue
git push -u origin backport/<descriptive-name>
Create PR against release/<VERSION> (NOT develop or main):
release/<VERSION>backport, no-release-notes, internalUse GitHub CLI if available:
gh pr create \
--base release/<VERSION> \
--title "Backport: <description>" \
--body "Backports commits from develop to release/<VERSION>" \
--label backport --label no-release-notes --label internal
⚠️ STOP HERE - The final sync from release/<VERSION> to main requires htahir1 (Hamza) to perform:
git fetch
git checkout main
git pull
git reset --hard origin/release/<VERSION>
git push --force
Tell the user: "The backport PR is ready. Once merged, Hamza (htahir1) needs to force-push release/<VERSION> to main to complete the sync."