commitizen / commitizen/cz-cli

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

Offen
#593 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
17.5k
Forks
566
Ø Merge
8 Std. 16 Min.
Gemergte PRs (30 T.)
1

Beschreibung

## 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
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die Pfadbehandlung der commitizen-Konfiguration zu lesen und den im Bericht gezeigten git-cz-Befehl zu reproduzieren; prüfe anschließend die verknüpfte commitlint issue auf Kompatibilitätskontext. Als erledigt gilt, wenn eine Konfiguration cz-conventional-changelog mit @commitlint/prompt kombinieren kann, ohne den Pfadtypfehler auszulösen, und den vorgesehenen täglichen Prompt-Workflow beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, nodejs
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.