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

decouple validation API from git-hook runner #48

Closed
kilianc opened this issue Jan 25, 2016 · 2 comments
Closed

decouple validation API from git-hook runner #48

kilianc opened this issue Jan 25, 2016 · 2 comments

Comments

@kilianc
Copy link

kilianc commented Jan 25, 2016

Since I usually use husky or shared-git-hooks already, it would be cool if commitplease was a binary or simple a lib that I can call from my own script.

@jzaefferer
Copy link
Owner

There's currently a clutch for this, setting nohook: true in package.json: https://github.com/jzaefferer/commitplease#customizing-the-bundled-options

Besides that, the only other solution I can think of would be to extract the validation into a separate module, then use that module here, or anywhere else where there's also a commit-msg hook in place. I'd prefer keeping both in one module though. Any ideas?

PS: Is your setup in a public repo? I'm interested in seeing how this module is used.

@kilianc
Copy link
Author

kilianc commented Jan 25, 2016

I was just playing with it, I copy pasted the snippet in the readme into an executable node script...

In general a lot of git related modules on npm embed their own hook runner - installer, instead of just releasing a bin, which is a bummer.

nohook: true seems like what I need!

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