Merging to Main
Merge Requirements
Before merging, ensure:
- At least 1 approval from an Organization Owner
- All review conversations resolved
- Branch is up to date with main
- No merge conflicts
- CI checks pass (when implemented)
Merge Process
GitHub web interface (recommended):
- Click "Merge"
- Edit the commit message to be clear and descriptive
- Confirm merge
- Delete the source branch automatically (check the box)
Command line (if needed):
git checkout main
git pull origin main
git merge --squash feature/your-feature
git commit -m "feat(scope): clear description of feature"
git push origin main
Post-Merge
Immediately after merging:
- Delete the feature branch (automated via GitHub)
- Verify main branch builds successfully
- Monitor for any issues in deployed environments
- Close any linked issues if not automatically closed
If something breaks:
- Create hotfix branch immediately
- Fix the issue
- Create a PR (can be fast-tracked)
- Merge after quick review
- Consider reverting the original PR if the hotfix is complex