π Hotfixes β
A hotfix is a critical fix that needs to go to production without waiting for the normal release cycle.
Flow β
production β hotfix PR (fix lands here first)
β backport
staging
β backport
mainStep by step β
Branch off
productionbashgit fetch origin git checkout -b hotfix/my-fix origin/productionFix, commit, push, open a PR against
productionGet it reviewed and merged
Add
backport:staginglabel to the merged PR β backport PR tostagingis created automaticallyOnce the staging backport is merged, add
backport:mainβ backport PR tomainis created
NOTE
Labels are added after merging, not before. The backport action triggers on both closed and labeled events.
Related β
- Backport β how the automated propagation works
- Pull requests