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

Support for git --hooks #450

Closed
TheKnockFather opened this issue Oct 18, 2021 · 4 comments
Closed

Support for git --hooks #450

TheKnockFather opened this issue Oct 18, 2021 · 4 comments
Labels
type: feature A new enhacement proposal

Comments

@TheKnockFather
Copy link

TheKnockFather commented Oct 18, 2021

Description

With commitizen in node it is very straight forward on how to replace git commit in a project using git hooks, however, this does not seem to work in my current python project using poetry but is possible if you bring in npm as an additional dependency. Not ideal.

Possible Solution

Make cz commit replace git commit when a contributor is committing inside of a repository.

@TheKnockFather TheKnockFather added the type: feature A new enhacement proposal label Oct 18, 2021
@TheKnockFather TheKnockFather changed the title How to replace git commit with cz commit in poetry python project Support for git --hooks Oct 19, 2021
@Lee-W
Copy link
Member

Lee-W commented Oct 20, 2021

Do you think this PR #250 relate to this feature? I've tried the implementation on my mac machine and failed but currently have no idea how we can fix that

@TheKnockFather
Copy link
Author

TheKnockFather commented Oct 20, 2021

Do you think this PR #250 relate to this feature? I've tried the implementation on my mac machine and failed but currently have no idea how we can fix that

Yes, that is the same feature we are looking for. Does your repo work if you just type cz commit directly? My suspicion is that it does not.

@Lee-W
Copy link
Member

Lee-W commented Nov 26, 2021

If you use pip or pipx to install commitizen in your local environment, then you can run cz commit driectly

@Lee-W
Copy link
Member

Lee-W commented Nov 26, 2021

As this is a duplicate issue to #249 , let's close this one and discuss there

@Lee-W Lee-W closed this as completed Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new enhacement proposal
Projects
None yet
Development

No branches or pull requests

2 participants