- Fork this repository
- Create a branch with your feature:
git checkout -b my-feature
- Commit your changes:
git commit -m 'feat: add my new feature'
- Push it to your branch:
git push origin my-feature
After merging your pull request, your branch can be deleted.
- The type and verb should always be lowercase
- Don't end the subject line with a period
- Use verbs with the imperative, present tense: “change” not “changed” nor “changes”
- Example:
- feat: add new user feature
- fix: fix user image path
feat
: new feature for the user, not a new feature for build scriptfix
: bug fix for the user, not a fix to a build scriptrefactor
: refactoring production code, eg. renaming a variablechore
: updating tasks, build tool, bundler, etc; no production code changetest
: adding missing tests, refactoring tests; no production code changestyle
: formatting, missing semi colons, etc; no production code changedocs
: changes to the documentation
add
: create a capability e.g. feature, test, dependencyupdate
: update a capability e.g. feature, test, dependencyfix
: fix an issue e.g. bug, typo, accident, misstatementremove
: remove a capability e.g. feature, test, dependencyrefactor
: a code change that must be just a refactoringreformat
: refactor of formatting, e.g. omit whitespacedocument
: refactor of documentation, e.g. help filesbump
: increase the version of something e.g. dependencymake
: change the build process, or tooling, or infraoptimise
: refactor of performance, e.g. speed up codestart
: begin doing something; e.g. create a feature flagstop
: end doing something; e.g. remove a feature flag
This document is based on Karma's Git Commit Msg Convention