I've decided to use semantic commit messages in my new toy project.
I saw kinds of types of semantic commit messages.
| type | description |
|---|---|
| feat | new feature for the user, not a new feature for build script |
| fix | bug fix for the user, not a fix to a build script |
| docs | changes to the documentation |
| style | formatting, missing semi colons, etc; no production code change |
| refactor | refactoring production code, eg. renaming a variable |
| test | adding missing tests, refactoring tests; no production code change |
| chore | updating grunt tasks etc; no production code change |
For frontend engineers
design, updates and new features, all of them use a semantic feat:?
Isn't there a semantic like design: or update:?
Let's have a look at the motivation for semantic commit messages.
git logis easy to skim.If you think some new tags would encourage small commits and readable logs for your particular project, add them. But first, consider if you need to.
updateseems pretty ambiguous. Isn't everything an update? What are you updating and why? If it's to fix a bug, that's afix. If it's to add a feature, that's afeat. If it's updating dependencies, that's achore.design... if this is a style change to images, fonts, CSS, etc... that could bestyle. Or it might be distinct and common enough to warrant a new tag. Perhapsassetsfor commits which only touch assets?