Interview Prep/Git & GitHub/Branching Strategies and Releases

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 →

  1. Adopt Conventional Commits: feat:, fix:, feat!: or a BREAKING CHANGE: footer.
  2. Validate in CI with commitlint, or only validate PR titles when squash-merging.
  3. Use release-please or semantic-release to compute the next version, update CHANGELOG.md and tag.
  4. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases