Learn how Tuturuuu uses Conventional Commits and Branch naming to improve development workflow.
Type | Description | Example |
---|---|---|
feat | New feature or enhancement | feat: add dark mode support |
fix | Bug fix | fix: prevent crash when user data is undefined |
docs | Documentation changes | docs: update installation instructions |
style | Code style changes (formatting, no code change) | style: format code with prettier |
refactor | Code refactoring | refactor: simplify authentication logic |
perf | Performance improvements | perf: optimize database queries |
test | Add or fix tests | test: add unit tests for auth middleware |
build | Changes affecting build system or dependencies | build: update dependency to fix security issue |
ci | Changes to CI configuration files and scripts | ci: add workflow for staging deployments |
chore | Routine tasks, maintenance | chore: update package.json metadata |
!
after the type/scope or by using a BREAKING CHANGE:
footer:
Type | Description | Example |
---|---|---|
main | Main development branch | main |
feature | For new features | feature/user-dashboard |
bugfix | For bug fixes | bugfix/login-error |
hotfix | For urgent fixes | hotfix/security-vulnerability |
release | For preparing releases | release/v1.2.0 |
chore | For maintenance tasks | chore/update-dependencies |
fix:
commits trigger a PATCH increment (1.0.0 → 1.0.1)feat:
commits trigger a MINOR increment (1.0.0 → 1.1.0)BREAKING CHANGE
trigger a MAJOR increment (1.0.0 → 2.0.0)release-types-package.yaml
workflow triggers when:
feature/user-dashboard
with commits like feat: add user stats widget
clearly indicates a new featurebugfix/auth-issue
with commits like fix: prevent token expiration error
indicates a bug fixmain
branchmain
to avoid merge conflicts