Skip to content

πŸš‘ 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
main

Step by step ​

  1. Branch off production

    bash
    git fetch origin
    git checkout -b hotfix/my-fix origin/production
  2. Fix, commit, push, open a PR against production

  3. Get it reviewed and merged

  4. Add backport:staging label to the merged PR β†’ backport PR to staging is created automatically

  5. Once the staging backport is merged, add backport:main β†’ backport PR to main is created

NOTE

Labels are added after merging, not before. The backport action triggers on both closed and labeled events.