You want changelogs and version bumps to come from commit history.
IntermediateScenarioBranching Strategies and Releases
Answer
Situation read → Structured messages allow tooling to derive the release type.
What I'd do →
- Adopt Conventional Commits:
feat:,fix:,feat!:or aBREAKING CHANGE:footer. - Validate in CI with commitlint, or only validate PR titles when squash-merging.
- Use release-please or semantic-release to compute the next version, update
CHANGELOG.mdand tag. - Review the generated release PR before it ships.
Why → fix maps to patch, feat to minor, breaking to major, so versioning is rule-based.
Interview tip → With squash merge, the PR title is the commit message, so validate that.
More on Branching Strategies and Releases
An eight-person team deploys several times a day. Which branching strategy do you recommend?IntermediateWhen would you choose GitFlow over trunk-based development?IntermediateIn trunk-based development, a feature will take three weeks. How do you merge it daily without exposing it?IntermediateYou are cutting a release. How do you manage the release branch and late fixes?IntermediateShould releases use lightweight or annotated tags?BeginnerA release tag was placed on the wrong commit and has been published. What do you do?Intermediate