Contribution guidelines
Write meaningful commit messages
- Have a subject line briefly describing what the change is
- Limit subject line to 50 characters
- Use body to explain problem and how the commit achieves its goal
- Separate subject from body with a blank line
- Wrap to body at 72 characters
- Write summary and description in imperative mode e.g. “make xyzzy do
frotz”
Example subject lines:
- Rename the iVars to remove the common prefix
- Make the cached role coherrent with the actual one
- Fix misspelled name on about page
Sources:
Useful verbs for commit messages
- Add/Cut = Create/Remove a capability
- Fix = Fix an issue e.g. bug, typo, accident, misstatement.
- Bump = Increase the version of something e.g. dependency.
- Make = Change the build process, or tooling, or infra.
- Refactor
- Reformat
- Optimise
- Document
- Use X capabilities
- Remove unused
- Replace X with Y
- Prevent
- Introduce
- Create
- Set
- Check
Prepare changes in a new branch
Branch name format:
reason__details–tag
feature/fix/enhancement/refactor/upgrade etc.
enchance: intensify, increase, or further improve the quality, value,
or extent of, to raise to a higher degree
upgrade: raise (something) to a higher standard, in particular improve
(equipment or machinery) by adding or replacing components.
Example:
feature__wonderful-hallo-API
More info
Commands I like
patch workflow
git format-patch -o /tmp/ HEAD~
Branching models
Any organization that designs a system (defined broadly) will produce
a design whose structure is a copy of the organization's communication
structure. — Melvin E. Conway
Trunk based development with git
- root level branches, no access control
- need quick local builds
- immediate reviews
Updated 02 January 2023