The Conventional Commits specification is often used to standardize commit messages. The most common types are:
-
feat: New features or functionalities.
Example:feat: add user authentication module -
fix: Bug fixes.
Example:fix: correct login validation error -
chore: Changes that are neither features nor bug fixes (e.g., refactoring, tooling, build adjustments).
Example:chore: update dependencies -
docs: Documentation changes.
Example:docs: add API usage example -
style: Code formatting changes without affecting logic (e.g., linting, whitespace).
Example:style: fix indentation -
refactor: Code changes that neither add a feature nor fix a bug (e.g., code improvements).
Example:refactor: improve data processing logic -
test: Adding or modifying tests.
Example:test: add unit tests for login -
perf: Performance improvements.
Example:perf: optimize image loading
Use ! to mark a breaking change:
- feat!: New features or functionalities.
Example:feat!: add user authentication module
Add the component:
- feat(componentName): New features or functionalities for specific component.
Example:feat(componentName): add user authentication module