Interview Prep/Git & GitHub/Branching strategies, pull requests and code review

What are Conventional Commits and semantic versioning, and how do they work together?

IntermediateConceptBranching strategies, pull requests and code review
Answer

Commit types map to version bumps: fix: is a patch, feat: is minor, and feat!: or a BREAKING CHANGE: footer is major. Tools like release-please or semantic-release read the commit history to compute the next version, update the changelog and tag.

feat(api)!: drop v1 endpoints

BREAKING CHANGE: /v1 removed
All Git & GitHub questions Roadmap: Git & GitHub

More on Branching strategies, pull requests and code review