Skip to content

commit

Follow these conventions when creating commits.

IMPORTANT: Always check formatting before committing. Run the format check first to ensure CI will pass:

Terminal window
# Check formatting (run this FIRST before any commit)
bun run format:check
# If there are formatting issues, fix them:
bun run format

Before committing, also ensure you’re working on a proper branch, not the main branch. Use the /checkout skill if you need to checkout a new branch.

Terminal window
# Check current branch
git branch --show-current

If you’re on main or master, create a new branch first:

Terminal window
# Create and switch to a new branch
git checkout -b <type>/<short-description>

Branch naming should follow the pattern: <type>/<short-description> where type matches the commit type (e.g., feat/add-user-auth, fix/null-pointer-error, ref/extract-validation).

<type>(<scope>): <subject>
<body>
<footer>

The header is required. Scope is optional. All lines must stay under 100 characters.

TypePurpose
featNew feature
fixBug fix
refRefactoring (no behavior change)
perfPerformance improvement
docsDocumentation only
testTest additions or corrections
buildBuild system or dependencies
ciCI configuration
choreMaintenance tasks
styleCode formatting (no logic change)
metaRepository metadata
licenseLicense changes
  • Use imperative, present tense: “Add feature” not “Added feature”
  • Capitalize the first letter
  • No period at the end
  • Maximum 70 characters
  • Explain what and why, not how
  • Use imperative mood and present tense
  • Include motivation for the change
  • Contrast with previous behavior when relevant

Reference issues in the footer using these patterns:

Fixes GH-1234
Fixes #1234
Refs #5678
  • Fixes closes the issue when merged
  • Refs links without closing

When changes were primarily generated by a coding agent (like Claude Code), include the Co-Authored-By attribution in the commit footer:

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

This is the only indicator of AI involvement that should appear in commits. Do not add phrases like “Generated by AI”, “Written with Claude”, or similar markers in the subject, body, or anywhere else in the commit message.

fix(api): Handle null response in user endpoint
The user API could return null for deleted accounts, causing a crash
in the dashboard. Add null check before accessing user properties.
Fixes #5678
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
feat(alerts): Add email notifications for alerts
When an alert is triggered, send email notification to configured
recipients. This keeps users informed of critical events.
Refs #1234
ref: Extract common validation logic to shared module
Move duplicate validation code from three endpoints into a shared
validator class. No behavior change.
feat(api)!: Remove deprecated v1 endpoints
Remove all v1 API endpoints that were deprecated in version 2.0.
Clients should migrate to v2 endpoints.
BREAKING CHANGE: v1 endpoints no longer available
Fixes #9999
revert: feat(api): Add new endpoint
This reverts commit abc123def456.
Reason: Caused performance regression in production.
  • Each commit should be a single, stable change
  • Commits should be independently reviewable
  • The repository should be in a working state after each commit