Conventional Commits: The Communication Standard
Table of Contents
📝 The Importance of Commit Messages
A commit message is a note to your future self and your team. “Fixed bug” is useless. “Fix null pointer in LoginActivity” is better.
Conventional Commits standardizes this format, making messages readable by both humans and machines.
Format
<type>(<scope>): <description>
- feat: A new feature (correlates with MINOR SemVer).
- fix: A bug fix (correlates with PATCH SemVer).
- docs: Documentation only changes.
- style: Changes that do not affect the meaning of the code (white-space, formatting).
- refactor: A code change that neither fixes a bug nor adds a feature.
- perf: A code change that improves performance.
- test: Adding missing tests or correcting existing tests.
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm).
- ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs).
- chore: Other changes that don’t modify src or test files.
- revert: Reverts a previous commit.
🚀 Examples
Good
feat(auth): add google login button
fix(home): prevent crash on orientation change
docs(readme): update setup instructions
Bad
added login
fixed stuff
wip
🤖 Why Use It?
- Automation: Generate changelogs automatically.
- Versioning: Determine semantic version bumps (feat -> minor, fix -> patch).
- Searchability: Easily grep for all
fixcommits in a module.
🛠️ Tools
- Commitizen: CLI tool to help you write formatted messages.
- Husky: Git hooks to lint messages before commit.
- Conventional Changelog: Generate
CHANGELOG.mdfrom git history.
🏁 Conclusion
Adopting Conventional Commits is a small habit change with massive ROI. It turns your git log into a structured database of project history.
You might also be interested in
Claude 4.6 (Sonnet and Opus): The Thinking Developer's Choice
Review of Anthropic's Claude 4.6 family. How 'Adaptive Thinking' and 'Computer Use v2' change the game for mobile CI/CD. Includes comparison with Gemini 3.0 Pro.
Semantic Versioning in CI/CD: The Science of Continuous Delivery
Master semantic versioning in CI/CD pipelines. Learn to calculate versions automatically and ensure traceability in your Android deployments.
AI Code Review: Your New Tireless Teammate
Learn how to configure AI agents to perform automated code reviews, catch subtle bugs, and enforce standards before a human intervenes.