pvdlg / cz-conventional-commit

Commitizen adapter following the conventional-changelog format, with emojis. 🎉
MIT License
17 stars 9 forks source link

Can't enable emojis #55

Open alebianco opened 5 years ago

alebianco commented 5 years ago

Emojis cannot be enabled from the configuration file, the default configuration always takes precedence when the package is initialised.

https://github.com/pvdlg/cz-conventional-commit/blob/e0c01ca6e4b616383dacfc389dfc49109e8c62d2/index.js#L8-L10

ronnieacs commented 2 years ago

The default config should not have emoji field set on false, that's always disabling emojis in the merge. Should be:

 const config = _.merge(commitizen.configLoader.load(), { 
    'cz-conventional-commit': {maxSubjectLength: 72, bodyLineLength: 100}, 
 })['cz-conventional-commit']; 

A fixed version is available on: https://github.com/ronnieacs/cz-conventional-commit