commitizen / cz-cli

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

[Feature] combination of "cz-conventional-changelog" with "@commitlint/prompt" #593

Open yiakwy opened 5 years ago

yiakwy commented 5 years ago

Question

How to use "cz-conventional-changelog" and "@commitlint/prompt" together?

See details from https://github.com/marionebl/commitlint/issues/512

Current configuration confliction

Default to

...
  "config": {
    "commitizen": {
      "path": "cz-conventional-changelog"
    }
  }

commitizen provides us with a way to automatically generate the changelog. However, it prompt is not convenient when used in daily work. I prefer to use a commitment adaptor like the following

  "config": {
    "commitizen": {
      "path": "@commitlint/prompt"
    }
  }

Expected Behavior


  "config": {
    "commitizen": {
      "path": ["cz-conventional-changelog","@commitlint/prompt"]
    }
  }

Current behavior

➜  topology git:(master) ✗ npm run git:commit

> nio_hdmap_topology@1.0.0 git:commit /Users/lei.wang1/Github/nio-common/topology
> git-cz && ./node_modules/validate-commit-msg/lib/cli.js

The "path" argument must be of type string. Received type object
rjhilgefort commented 5 years ago

I'm seeing this same issue even with out commitlint

gaurav5430 commented 4 years ago

The linked issue is not available anymore https://github.com/marionebl/commitlint/issues/512