Quick reference for standard commit message types
A new feature or capability
Example:
feat: add user authenticationA bug fix
Example:
fix: resolve login page styling issueDocumentation only changes
Example:
docs: update README with setup instructionsChanges that do not affect code functionality (formatting, missing semicolons, etc)
Example:
style: format code according to linter rulesCode change that neither fixes a bug nor adds a feature
Example:
refactor: restructure authentication moduleCode change that improves performance
Example:
perf: optimize image loading with lazy loadingAdding or updating tests
Example:
test: add unit tests for authenticationChanges to build process, dependencies, or other non-code tasks
Example:
chore: update dependencies to latest versionsChanges to CI/CD configuration files
Example:
ci: add GitHub Actions workflow for testsChanges that affect the build system or dependencies
Example:
build: add webpack configurationReverts a previous commit
Example:
revert: undo previous feature implementationBased on Conventional Commits