Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A comprehensive guide to Conventional Commits for developers — ensuring clean, consistent, and automated commit practices across all projects.

NotificationsYou must be signed in to change notification settings

unifiedbits/commit-guidelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Welcome to the official commit convention guide for UnifiedBits!
We follow theConventional Commits specification to ensure clarity, traceability, and automation in our development process.


📌 Why Use Conventional Commits?

  • 🧠 Clear project history
  • 🚀 Easy changelog generation
  • 🤖 Enables automation (versioning, deployments)
  • 🤝 Improves team collaboration and onboarding

🛠️ Commit Message Format

A commit message must be structured as follows:

<type>(optional scope): <short summary>[optional body][optional footer]

✅ Example

feat(auth): add login with OTP supportThis introduces OTP-based authentication using Twilio.Also updates the user model to include phone verification.Fixes #24

🔤 Allowed Commit Types

TypeDescription
featA new feature
fixA bug fix
docsDocumentation only changes
styleCode style changes (formatting, missing semicolons, etc.)
refactorCode change that neither fixes a bug nor adds a feature
perfPerformance improvements
testAdding or updating tests
choreMaintenance tasks (configs, deps, CI/CD)

🧩 Optional Scopes

Usescopes to specify which part of the codebase is affected.
Example:feat(api),fix(ui),docs(readme)

Scope Examples
auth
ui
api
core
docs
deps

📋 Writing Good Commit Messages

  • ✅ Use theimperative mood: "fix bug" not "fixed bug"
  • ✅ Keep subject line under72 characters
  • ✅ Use body to explainwhy, not justwhat
  • ✅ Separate thesubject,body, andfooter with blank lines
  • ✅ Reference issues or PRs in the footer (e.g.,Fixes #12)

🔄 Sample Commit Examples

Here are realistic examples categorized by type:

🎯feat: New Feature

feat(auth): add login with OTP supportfeat(dashboard): implement user analytics chartsfeat(api): add endpoint for bulk file processing

🐛fix: Bug Fix

fix(ui): resolve button misalignment on mobile viewfix(api): correct 500 error on invalid inputfix(auth): prevent token from expiring prematurely

📄docs: Documentation Changes

docs(readme): update installation instructionsdocs(api): add usage examples to user routesdocs(contributing): explain branching strategy

🎨style: Formatting & Styling

style(ui): unify font sizes across componentsstyle(css): apply consistent padding and marginsstyle(auth): fix lint warnings and spacing issues

♻️refactor: Code Refactoring

refactor(core): extract utility functions from controllerrefactor(api): simplify query logic in search routerefactor(auth): remove unused middleware

🚀perf: Performance Improvements

perf(api): optimize DB query for loading dashboardperf(ui): lazy load images for faster initial load

test: Adding/Updating Tests

test(api): add test cases for file uploadtest(auth): increase test coverage for login flowtest(ui): snapshot tests for new components

🔧chore: Maintenance/Meta

chore(ci): add GitHub Actions workflow for testingchore(deps): upgrade dependencies to latest versionschore(project): rename folders for clarity

🧪 Tools to Help


📚 Resources


🔮 Final Note

Following a convention for commit messages ensures every contributor understands the codebase history clearly, automates release processes, and scales the team with confidence.

“Quality is never an accident; it is always the result of intelligent effort.” – John Ruskin

Happy committing! 🚀
— TeamUnifiedBits

About

A comprehensive guide to Conventional Commits for developers — ensuring clean, consistent, and automated commit practices across all projects.

Topics

Resources

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp