Hotfix Process
什么时候使用 hotfix
只有当生产环境已经受影响,且修复不能等待常规发布流程时,才使用 hotfix。
步骤
- Create hotfix branch from production tag
- Apply minimal fix
- Add test or verification note
- Open emergency PR
- Get required approval
- Merge and release
- Tag the release
- Back-merge to main branch
- Write postmortem note
规则
- Keep the diff small
- Do not include refactoring
- Do not mix unrelated changes
- Always document rollback plan