Description
https://github.com/commitizen/cz-cli has not been updated in a year and seem abandoned or their release process is borked and nobody care
see commitizen/cz-cli#914
commitizen/cz-cli#874
Because of this we could potentially add a commit
command that would do the same to this package.
We have access to all the information we need to build nice conventional commit messages the same way commitzen does it by just looking at the configuration in `commitlint`` package:
https://github.com/conventional-changelog/commitlint
https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js#L36
via https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/load)
AC
- create
dev commit
command - use the commitlint/load package to fetch the project commit lint configuration.
- if commitlint is not setup for the project - exit early and display warning message or use default config
- use data in the prompt section of the config to display a bunch of questions to build commit message
- add a short circuit after feature / scope and header.
Note:
We could also use https://commitlint.js.org/#/guides-use-prompt commitlint/prompt-cli but i prefer features of commitizen/cz-cli
Activity
cgaube commentedon Feb 12, 2023
Should be fixed it in version 4.2.5.
This PR can be closed