@roysung/cz-jira-smart-emoji
v1.0.4
Published
Forked from moogsG/cz-jira-smart-emoji. Commitizen adapter formatting commit messages using emojis with jira smart commits
Downloads
158
Readme
@roysung/cz-jira-smart-emoji
Commitizen adapter formatting commit messages using emojis and jira smart commits
@roysung/cz-jira-smart-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
Globally
npm install --global @roysung/cz-jira-smart-emoji
# set as default adapter for your projects
echo '{ "path": "@roysung/cz-jira-smart-emoji" }' > ~/.czrc
Locally
npm install --save-dev cz-emoji
Add this to your package.json
:
"config": {
"commitizen": {
"path": "@roysung/cz-jira-smart-emoji"
}
}
Usage
git cz
Customization
By default @roysung/cz-jira-smart-emoji
comes ready to run out of the box. Uses may vary, so there are a few configuration options to allow fine tuning for project needs.
How to
Configuring @roysung/cz-jira-smart-emoji
can be handled in the users home directory (~/.czrc
) for changes to impact all projects or on a per project basis (package.json
). Simply add the config property as shown below to the existing object in either of the locations with your settings for override.
{
"config": {
"@roysung/cz-jira-smart-emoji": {}
}
}
Configuration Options
Types
By default @roysung/cz-jira-smart-emoji
comes preconfigured with the Gitmoji types.
An Inquirer.js choices array:
{
"config": {
"@roysung/cz-jira-smart-emoji": {
"types": [
{
"emoji": "🌟",
"code": ":star2:",
"description": "A new feature",
"name": "feature"
}
]
}
}
}
Workflows
An Inquirer.js choices array:
{
"config": {
"cz-emoji": {
"workflows": [{"name": "testing", "value":"testing"}]
}
}
}