commitizen / commitizen/cz-cli
[Feature] combination of "cz-conventional-changelog" with "@commitlint/prompt"
- Langage dominant
- JavaScript
- Étoiles
- 17.5k
- Forks
- 566
- Merge moyen
- 8 h 16 min
- PR mergées (30 j)
- 1
Description
## 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
```js
...
"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
```js
"config": {
"commitizen": {
"path": "@commitlint/prompt"
}
}
```
## Expected Behavior
```js
"config": {
"commitizen": {
"path": ["cz-conventional-changelog","@commitlint/prompt"]
}
}
```
## Current behavior
```bash
➜ 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
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par lire la gestion des chemins de la configuration de commitizen et reproduire la commande git-cz indiquée dans le rapport, puis examinez l’issue commitlint liée pour le contexte de compatibilité. C’est terminé lorsqu’une configuration peut combiner cz-conventional-changelog avec @commitlint/prompt sans provoquer l’erreur de type de chemin et conserve le workflow de prompt quotidien prévu.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, nodejs
- Domaine
- cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100