I write commits with this linter https://github.com/srghma/linted-git-commit
Structure:
type: scope (e.g. page name) or noun -> scope (e.g. widget name) or noun -> verb (optional)
I use only 3 varians of "type":
feat
: Adds a new feature.fix
: Solves a bug.refactor
: Rewrites code without feature, performance or bug changes.
Examples of commits:
feat: some page -> new field -> add feat: ci -> ... feat: docs -> ... feat: feature_test -> signup fix: some page -> field -> fix WHAT/HOW fix: ci -> ... fix: docs -> ... fix: feature_test -> signup refactor: some page -> field -> change WHAT refactor: ci -> ... refactor: docs -> ... refactor: feature_test -> signup # how to add issue numbers feat(#ISSUE_NUMBER_HERE): some page -> new field -> add feat(#ISSUE_NUMBER_HERE,#ISSUE_NUMBER_HERE2): some page -> new field -> add # how to revert commit REVERT feat: some page -> new field -> add
Example:
fix(#123123): voc -> v4 -> flash msg for furniture category -> add