Skip to content

BleemIs42/cz-commit-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

MIT