3 ms·
I use the following convention to start the subject of commit(posted by someone in a similar HN thread): Add = Create a capability e.g. feature, test, depe
by navinsylvester 8y ago
I use the following convention to start the subject of commit(posted by someone in a similar HN thread):
Add = Create a capability e.g. feature, test, dependency.
Cut = Remove a capability e.g. feature, test, dependency.
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.
Start = Begin doing something; e.g. create a feature flag.
Stop = End doing something; e.g. remove a feature flag.
Refactor = A code change that MUST be just a refactoring.
Reformat = Refactor of formatting, e.g. omit whitespace.
Optimize = Refactor of performance, e.g. speed up code.
Document = Refactor of documentation, e.g. help files.
- hmcdona1 8y agoThis is similar to the Conventional Changelog: https://github.com/conventional-changelog/conventional-changelog https://github.com/conventional-changelog/conventional-chang... I often use a customized Commit Lint in combo with Husky to enforce conventional changelog messages: https://github.com/marionebl/commitlint https://github.com/marionebl/commitlint https://github.com/typicode/husky https://github.com/typicode/husky You can also throw in something like the Commitizen cli for newcomers: https://github.com/commitizen/cz-cli https://github.com/commitizen/cz-cli
- nindalf 8y agoAnd my personal favourite - REMOVE. I made like 5 diffs in the last week where I just removed old shit that wasn't needed. I felt absurdly happy after each one.