A quick reference for conventional commit types — keep your git history clean, readable, and professional.
Use when you add a new functionality to the project — a new endpoint, a new screen, a new module.
feat: add password recovery endpoint
Use when you correct an error or unexpected behavior in the existing code.
fix: correct email validation on signup
Use for changes only in documentation — README, Swagger, inline comments. No logic is changed.
docs: update installation steps in README
Use for formatting changes that do not affect the logic — spaces, indentation, removing console.logs.
style: format code following ESLint rules
Use when you restructure existing code without fixing bugs or adding features — e.g. switching from require to import.
refactor: optimize SQL query in user model
Use for maintenance tasks — updating dependencies, configuring .gitignore, Docker adjustments.
chore: update Node.js version in Dockerfile