Create a properly formatted git commit for ECSdb work
Create a properly formatted commit for the ECSdb project.
$0 = commit type (feat, test, fix, docs, refactor, chore)$1 = ticket ID (e.g., 02-004)$2 = commit message descriptionBefore committing, verify:
# 1. Run tests
cargo test
# 2. Run clippy
cargo clippy
# 3. Check formatting
cargo fmt --check
If ANY of these fail, DO NOT COMMIT. Fix the issues first.
git add -A
git commit -m "$(cat <<'EOF'
$0: $2 [TICKET-$1]
<detailed description if needed>
EOF
)"
| Type | When to Use |
|---|---|
feat | New feature implementation |
test | Adding or updating tests |
fix | Bug fixes |
docs | Documentation updates |
refactor | Code restructuring without behavior change |
chore | Build, dependencies, tooling |
Test commit:
/commit-work test 02-004 "add ComponentData serialization tests"
Results in: