commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter

Home Page:http://commitizen.github.io/cz-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tomavic opened this issue Β· comments

commented

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 πŸš€

Why do you need to configure so many adapters ?

commented

@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.

@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

@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 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

commented

@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.

@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? πŸ€―πŸ‘€

commented

@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 πŸ˜‰πŸš€