commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.89k stars 552 forks source link

I need to configure multi plugins inside `package.json` config #947

Closed tomavic closed 2 years ago

tomavic commented 2 years ago

I need to configure multi plugins at the same time. For example cz-conventional-changelog and cz-emoji-conventional. How is it not available till now, to configure it like this:

  "config": {
    "commitizen": {
      "path": ["cz-conventional-changelog", "cz-emoji", "cz-conventional-changelog-for-jira"]
    }
  }

This is hardly required 🚀

Zhengqbbb commented 2 years ago

Why do you need to configure so many adapters ?

tomavic commented 2 years ago

@Zhengqbbb For example

I want to use conventional changelog with commitlint and gitmoji. I can share with you what I have got so far from config files and git hooks.

The problem is I have to let go usage of gitmoji in favour of changelog.

Zhengqbbb commented 2 years ago

@tomavic @antonkharkhonov I think i can solve your needs, come and use my adapter, if you have any questions, send me an issue https://github.com/Zhengqbbb/cz-git

Zhengqbbb commented 2 years ago

@antonkharkhonov

for jira ticket detection

I'm not sure about the use of jira ticket detection, is it the ISSUE ID if yes, if can get it by command then it can be combined with default subject for better experience https://cz-git.qbenben.com/recipes/defaultSubject.html

Zhengqbbb commented 2 years ago

@Zhengqbbb For example

I want to use conventional changelog with commitlint and gitmoji. I can share with you what I have got so far from config files and git hooks.

The problem is I have to let go usage of gitmoji in favour of changelog.

commitlint: https://cz-git.qbenben.com/config/#configure-template emoji: https://cz-git.qbenben.com/config/show.html#useemoji Do you need anything else, you can tell me

tomavic commented 2 years ago

@Zhengqbbb Yes I have another issue with changelog and emojis too. I am using semantic release which can't detect changes because of emojis. I figured out that I may add the emoji to the subject instead of beginning of commit message. Same as you did 😉😉

Let me try your adapter and give you a hint if that works. But I need to know if commitizen is able to support multi adapter.

Zhengqbbb commented 2 years ago

@tomavic But I need to know if commitizen is able to support multi adapter.

No. Adapters you can understand to UI plugins and generate messages

Anyway, would you like to answer three rounds of diff questions in the CLI? 🤯👀

tomavic commented 2 years ago

@Zhengqbbb, Anyway, would you like to answer three rounds of questions in the CLI? 🤯👀

Of course no, less questions is always fine.

I am checking cz git right now and it seems amazing. I will try it out in a separate Angular app, and a separate Angular library workspace.

If there are some questions I will post that there.

I am going to close this issue as there is nothing to be discussed here 😉🚀