:pencil: Extend git commit message from angular style
Extend git commit message from angular style
All Commit Message Format MUST meet this Text Format:
[:<Emoji>: ][<Type>[(<Scope>)]: ]<Subject>
[<BLANK LINE>]
[<Message Body>]
[<BLANK LINE>]
[<Message Footer>]
| Type | Description |
|---|---|
new |
for new feature implementing commit |
feature |
for new feature implementing commit (equal new) |
update |
for update commit |
bug |
for bug fix commit |
security |
for security issue fix commit |
performance |
for performance issue fix commit |
improvement |
for backwards-compatible enhancement commit |
breaking |
for backwards-incompatible enhancement commit |
deprecated |
for deprecated feature commit |
i18n |
for i18n (internationalization) commit |
a11y |
for a11y (accessibility) commit |
refactor |
for refactoring commit |
docs |
for documentation commit |
example |
for example code commit |
test |
for testing commit |
deps |
for dependencies upgrading or downgrading commit |
config |
for configuration commit |
build |
for packaging or bundling commit |
release |
for publishing commit |
wip |
for work in progress commit |
chore |
for other operations commit |
If the prefix is the below types, it will appear in the changelog.
new (feature)bugperformancesecurityimprovementdeprecatedbreakingThe scope could be anything specifying place or category of the commit change. For example $location, $browser, $compile, $rootScope, ngHref, ngClick, ngView, feature1, etc…
The subject contains succinct description of the change:
Just as in the Subject, use the imperative, present tense: “change” not “changed” nor “changes”. The body should include the motivation for the change and contrast this with previous behavior.
The Message Footer should contain any information about Notes and also Message Footer should be recommended GitHub Issue ID Reference, Ex. Issue #27, Fixes #1, Closes #2, Resolves #3.
undefinedNotes should start with the word NOTE: with a space or two newlines. The rest of the commit message is then used for this.
If the commit reverts a previous commit, it should begin with revert:, followed by the header of the reverted commit. In the body it should say: This reverts commit
| Emoji | Raw Emoji Code | Type | Description |
|---|---|---|---|
| :star: | :star: |
new or feature |
add new featureundefined |
| :bug: | :bug: |
bug |
fix bug issue |
| :ambulance: | :ambulance: |
bug |
critical hotfix bug issue |
| :lock: | :lock: |
security |
fix security issue |
| :chart_with_upwards_trend: | :chart_with_upwards_trend: |
performance |
fix performance issue |
| :zap: | :zap: |
improvement |
update backwards-compatible feature |
| :boom: | :boom |
breaking |
update backwards-incompatible feature |
| :warning: | :warning: |
deprecated |
undefineddeprecate feature |
| :globe_with_meridians: | :globe_with_meridians: |
i18n |
update or fix internationalizationundefined |
| :wheelchair: | :wheelchair: |
a11y |
update or fix accessibilityundefined |
| :rotating_light: | :rotating_light: |
refactor |
remove linter/strict/deprecation warnings |
| :shirt: | :shirt: |
refactor |
undefinedrefactoring or code layoutingundefined |
| :white_check_mark: | :white_check_mark: |
test |
add tests, fix tests failur or CI building |
| :pencil: | :pencil: |
docs |
update documentationundefined |
| :copyright: | :copyright: |
docs |
decide or change licenseundefined |
| :lollipop: | :lollipop: |
example |
for example or demo codes |
| :lipstick: | :lipstick: |
update |
update UI/Cosmeticundefined |
| :up: | :up: |
update |
update otherundefined |
| :truck: | :truck: |
update |
undefinedmove or rename files, repository, … |
| :twisted_rightwards_arrows: | :twisted_rightwards_arrows: |
update |
merge conflict resolutionundefined |
| :heavy_plus_sign: | :heavy_plus_sign: |
update |
undefinedadd files, dependencies, … |
| :heavy_minus_sign: | :heavy_minus_sign: |
update |
undefinedremove files, dependencies, … |
| :on: | :on: |
update |
undefinedenable feature and something … |
| :arrow_up: | :arrow_up: |
deps |
upgrade dependenciesundefined |
| :arrow_down: | :arrow_down: |
deps |
downgrade dependenciesundefined |
| :pushpin: | :pushpin: |
deps |
pin dependenciesundefined |
| :wrench: | :wrench: |
config |
update configurationundefined |
| :package: | :package: |
build |
undefinedpackaging or bundling or buildingundefined |
| :whale: | :whale: |
build |
Dockerfile |
| :hatching_chick: | :hatching_chick: |
release |
undefinedinitial commit |
| :confetti_ball: | :confetti_ball: |
release |
release major version |
| :tada: | :tada: |
release |
release minor version |
| :sparkles: | :sparkles: |
release |
release patch version |
| :rocket: | :rocket: |
release |
undefineddeploy to production enviroment |
| :bookmark: | :bookmark: |
release |
undefinedtagged with version label |
| :back: | :back: |
revert |
undefinedrevert commiting |
| :construction: | :construction: |
wip |
undefinedWIP commiting |
Ask to Be Creative!
new:
:star: new(graphite): add 'graphiteWidth' option
bug fix:
:bug: fix(graphite): stop graphite breaking when width < 0.1
Closes #28
improve performance:
:chart_with_upwards_trend: performance(graphite): remove graphiteWidth option
The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason.
revert:
:back: revert: new: add 'graphiteWidth' option
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
You can use with conventional-changelog-cli and conventional-github-releaser.
e.g. conventional-changelog-cli:
$ npm i --save-dev git://github.com/kazupon/git-commit-message-convention.git
$ conventional-changelog -i CHANGELOG.md -s -n ./node_modules/git-commit-message-convention/convention.js -r 0
e.g. conventional-github-releaser:
$ conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js -r 0
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.