see how a minor change to your commit message style can make you a better programmer self generate {docs,changelog}, add context to the changeset, enable filtering (e.g. ignore styling or documentation changes), and liven up the commit history!
format: <type>(<scope>): <ticket> subject :emoji:
<scope>
- optional
- some changes are global or difficult to assign to a single component
<ticket>
- optional
- not all commits exist w/in the context of a jira ticket
:emoji:
- required ;P
feat(hat): JIRA-2313 add wobble :tophat:
.--- .-- .-------- .--------- .-------
| | | | |
| | | | '-> emoji
| | | |
| | | '--> summary in present tense
| | |
| | '-----> jira ticket id
| |
| '-------> scope of the changeset
|
'--------> type: chore, docs, feat, fix, refactor, style, or test
feat(logging)
: INFENG-583 add outbound sender header π€fix(tcptraceroute)
: DEVOPS-5790 conditional guarding π¨docs(examples)
: BBTIME-3 update πstyle(beautify)
: beautify single line json file π¨refactor(email)
: DSGR-4843 recipient visibility πtest(examples)
: add webhook.json βͺοΈchore(version)
: bump package json πΎ
feat(hat): add wobble
.--- .-- .---------
| | |
| | '--> summary in present tense
| |
| '--------> scope of changeset
|
'-------------> type: chore, docs, feat, fix, refactor, style, or test
feat(config)
: add required settingsfix(tcptraceroute)
: conditional guarding πdocs(examples)
: add deployment links βοΈstyle(beautify)
: beautify single line json file π¨refactor(logging)
: update output formatting πtest(examples)
: add webhook.json βͺοΈchore(version)
: bump package json πΎ
feat: add hat wobble
.--- .-------------
| |
| '-> summary in present tense.
|
'-------> type: chore, docs, feat, fix, refactor, style, or test.
feat
: new feature for the user, not a new feature for build scriptfix
: bug fix for the user, not a fix to a build scriptdocs
: changes to the documentationstyle
: formatting, missing semi colons, etc; no production code changerefactor
: refactoring production code, eg. renaming a variabletest
: adding missing tests, refactoring tests; no production code changechore
: updating grunt tasks etc; no production code change
use case: last resort
format: :lone_emoji:
- π§
Awesome !! π