Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to help create conventional commit messages #50

Closed
cgaube opened this issue Apr 5, 2022 · 1 comment
Closed

Add command to help create conventional commit messages #50

cgaube opened this issue Apr 5, 2022 · 1 comment

Comments

@cgaube
Copy link
Contributor

cgaube commented Apr 5, 2022

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

@cgaube
Copy link
Contributor Author

cgaube commented Feb 12, 2023

Should be fixed it in version 4.2.5.
This PR can be closed

@cgaube cgaube closed this as completed Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant