Commits¶
This page covers what to put in your commit message. For the actual mechanics of staging, committing, and pushing, see How to Commit.
Commits do not need to follow a strict format just as long as the commit has a good descriptive and short message it is fine.
Format (loose guideline)¶
Commits can loosely follow the Conventional Commits style:
This is a nice-to-have, not a rule. If you write fixed bug in tag service instead of fix(backend): resolve tag service bug, nobody's going to block your PR over it. The goal is just to keep history reasonably scannable — a properly formatted commit is appreciated, but a clear plain-English one is still totally fine.
Types (if you're following the format)¶
| Type | Use for |
|---|---|
feat |
A new feature |
fix |
A bug fix |
refactor |
Code change that neither fixes a bug nor adds a feature |
docs |
Documentation only changes |
test |
Adding or correcting tests |
chore |
Build process, tooling, or dependency changes |
Scope¶
Scope is optional and just describes the area affected — e.g. backend, android, common, tag-service. Skip it if it's not obvious or not worth specifying.
Examples¶
Following the format:
feat(android): add device registration flow
fix(backend): resolve stale path prefix in SecurityFilter
docs(getting-started): add feature branch guide
refactor(common): consolidate CREATE_X/EDIT_X permission pairs
Not following the format (also fine):
fixed device registration crash on first launch
cleaned up employee reload logic
updated getting started docs
What actually matters¶
Format aside, the one real rule: make the message describe what changed.
Avoid messages like:
These tell a reviewer (or future-you, six months from now) nothing about what actually happened. Even a rough one-liner like fixed employee bleed bug in reloadData is far more useful than fix.
Habits worth keeping¶
Never commit directly to main
We don't have branch protection rules set up (requires a paid plan), so nothing stops you from pushing straight to main.
Always work on a feature branch and go through a PR—even for "tiny" changes.
- Commit often. Small, focused commits are easier to review and easier to revert if something breaks.
- Don't wait until a feature is "done" to make your first commit — commit as you go.
- Push regularly so your work isn't sitting only on your local machine.
- One logical change per commit where reasonable — if you're fixing a bug and doing an unrelated cleanup, consider splitting them into two commits.