Skip to content

Add command to help create conventional commit messages  #50

Closed
@cgaube

Description

@cgaube
Contributor

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

cgaube commented on Feb 12, 2023

@cgaube
ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cgaube

        Issue actions

          Add command to help create conventional commit messages · Issue #50 · aftdev/dev-env-manager