cz-commit-emoji
v1.0.3
Published
Commitizen adapter formatting commit messages using emojis
Downloads
6
Readme
cz-commit-emoji
Commitizen adapter formatting commit messages using emojis.
cz-commit-emoji allows you to easily use emojis in your commits using [commitizen].
? Select the type of change you are committing: (Use arrow keys)
❯ feature 🌟 A new feature
fix 🐞 A bug fix
docs 📚 Documentation change
refactor 🎨 A code refactoring change
chore 🔩 A chore change
Install
yarn add commitizen cz-commit-emoji --dev
Usage
In package.json
{
...
"config": {
"commitizen": {
"path": "cz-commit-emoji"
}
}
}
or with a config file named .czrc.js
echo '{ "path": "cz-commit-emoji" }' > ./.czrc
$ git cz
Types
An [Inquirer.js] choices array:
{
"config": {
"cz-commit-emoji": {
"types": [
{
"emoji": "🌟",
"code": ":star2:",
"description": "A new feature",
"name": "feature"
}
]
}
}
}
The value property
must be the emoji itself.
Scopes
An [Inquirer.js] choices array:
{
"config": {
"cz-commit-emoji": {
"scopes": ["home", "accounts", "ci"]
}
}
}
Examples
- https://github.com/BarryYan/nsp
License
MIT