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

Commitizen custom command #2383

Open
jlanzarotta opened this issue Dec 2, 2024 · 1 comment
Open

Commitizen custom command #2383

jlanzarotta opened this issue Dec 2, 2024 · 1 comment

Comments

@jlanzarotta
Copy link

Has anyone implemented a custom commitizen command? On commit, I would like to use commitizen to create the commit message.

@ValentinGurkov
Copy link

You can run this with a git hook manager such as husky and lefthook in your project. We use leftook to run customized Git hooks. Here is how I run commitizen:

prepare-commit-msg:
    commands:
        commitizen:
            interactive: true
            run: pnpm git-cz --hook
            env:
                LEFTHOOK: 0

There are other guide online for running this with husky and others,

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

2 participants