GitHub

Development Practices

Branch naming and commit message conventions

Conventions we prefer to standardize on: branch naming, commit naming, and when to push.

Branch naming

Try to follow these standards - most are adapted from the dashboard repo.

TypePatternExample
Featurefeat/<short-description>feat/order-export
Bug fixfix/<short-description>fix/session-expiry
Chorechore/<short-description>chore/update-deps

This makes it clearer what's going on at a glance. Each branch should be scoped to one specific feature or purpose, and should be merged and deleted once that purpose is met.

Additionally, append a :<Team-name> to make it clear which team this branch belongs to. Newer members may want to dive into the code and see what projects you are working on. Something like feat: motor-fixes:drivebase.

Commit messages

Follow these commit naming standards. They make it clearer what a commit actually does.

plaintext
<type>: <short description>
TypeWhen to use
featNew feature or behaviour
fixBug fix
choreMaintenance, deps, config - no behaviour change
docsDocumentation only
styleFormatting, whitespace - no logic change
refactorCode restructure with no feature or fix
perfPerformance improvement
ciCI/CD changes
revertReverts a previous commit

On this page