-
Notifications
You must be signed in to change notification settings - Fork 39
Hotfix Process
Johann Levesque edited this page Jan 23, 2026
·
6 revisions
Hotfix releases are used to apply critical fixes to production.
This process aligns with the standard release workflow and follows Git Flow conventions.
Hotfixes:
- Are branched from main
- Are merged via Pull Requests
- Are tagged from main
- Are merged back into develop
Before starting:
- Make sure package version numbers are updated (patch version only)
- Make sure documentation has been updated (use CoPilot)
- Ensure the fix is minimal and production-safe
Make sure packages version number are updated
git fetch upstream
If the local main branch already exists:
git checkout main
git pull upstream main
If the branch does not exist locally:
git checkout -b main upstream/main
git checkout -b hotfix/issue-id-or-description
git commit -m "hotfix: brief description of the hotfix"
git push upstream hotfix/issue-id
- Open a PR upstream from
hotfix/issue-id→main - Ensure CI checks pass
- Obtain required approvals
- Merge using merge commit (do not squash)
After the PR is merged and main is up to date:
git checkout main
git pull upstream main
git tag vX.Y.Z
git push upstream vX.Y.Z
git checkout develop
git pull upstream develop
git merge upstream/hotfix-branch
git push upstream develop
git branch -d hotfix/issue-id
git push upstream --delete hotfix/issue-id
main ───────────────●────────── tag vX.Y.Z
\ |
\ |
\── hotfix/* ──┘
|
v
develop
- Always branch hotfixes from a clean
main - Use Pull Requests for all merges
- Tag only from
main - Use semantic versioning (patch only)
- Always merge hotfixes back into
develop