alessandrojcm / commitlint-pre-commit-hook

A pre-commit hook for commitlint
MIT License
151 stars 17 forks source link

Move `stages` config into hooks #129

Closed aentwist closed 11 months ago

aentwist commented 11 months ago

Currently users need to specify the stages in .pre-commit-config.yaml [README]. It would be nice if they didn't have to configure this. From the pre-commit docs,

Providers of hooks can select which git hooks they run on by setting the stages property in .pre-commit-hooks.yaml -- this can also be overridden by setting stages in .pre-commit-config.yaml.

Are we able to move the stages into the hooks here? If not, maybe there was motivation to leave this to users?

aentwist commented 11 months ago

Upon further review it seems like stage management is something that is typically left to users