Skip to content
forked from ngryman/cz-emoji

Commitizen adapter formatting commit messages using emojis.

License

Notifications You must be signed in to change notification settings

xgfe/cz-emoji-xg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cz-emoji

Commitizen adapter formatting commit messages using emojis.

cz-emoji-xg 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

npm install -g commitizen

# install cz-emoji-xg locally
commitizen init cz-emoji-xg --save-dev

Usage

$ git cz

Customize

By default cz-emoji-xg 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-xg": {}
  }
}

Types

An Inquirer.js choices array:

{
  "config": {
    "cz-emoji-xg": {
      "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-emoji-xg": {
      "scopes": [
        "home",
        "accounts",
        "ci"
      ]
    }
  }
}

Examples

About

Commitizen adapter formatting commit messages using emojis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%