Commitizen adapter formatting commit messages using emojis.
cz-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
npm install --global cz-emoji
# set as default adapter for your projects
echo '{ "path": "cz-emoji" }' > ~/.czrc
$ git cz
By default cz-emoji
comes preconfigured with the Gitemoji types.
But you can customize things on a project basis by adding a configuration section in your package.json
:
{
"config": {
"cz-emoji": {}
}
}
An Inquirer.js choices array:
{
"config": {
"cz-emoji": {
"types": [
{
"emoji": "🌟",
"code": ":star2:",
"description": "A new feature",
"name": "feature"
}
]
}
}
}
The value property
must be the emoji itself.
An Inquirer.js choices array:
{
"config": {
"cz-emoji": {
"scopes": [
"home",
"accounts",
"ci"
]
}
}
}
MIT © Nicolas Gryman