<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
feat: Add view function
^--^ ^---------------^
| |
| +-> Summary in present tense.
|
+-------> Type: feat, fix, refactor, style, build, ci, docs, test.
Type:
feat
: (new feature, function for main code)fix
: (bug fix for main code)refactor
: (code refactoring eg. renaming variable)style
: (changes that are just formatting, missing semi colons, etc;)build
: (changes related to packages, tools config file etc.)ci
: (changes related to automation, .github workflow etc.)docs
: (changes to the documentation)test
: (code related to tests)
Example:
- Conventional Commits
- https://nitayneeman.com/posts/understanding-semantic-commit-messages-using-git-and-angular/
- https://cheatography.com/albelop/cheat-sheets/conventional-commits/
- https://github.com/commitizen/conventional-commit-types/blob/master/index.json
- https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type