I’m using a commitizen and a pre-commit
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
hooks:
- id: commitizen
name: commit message check
On local everything is working perfect – commitizen is triggered by pre-commit and the commit message is validated. The thing is that when I create a Merge Request I’m running a pipeline in gitlab ci with pre-commit run --all-files --show-diff-on-failure
to make sure that the code which is supposed to be merged meets all the requirements. The thing is that all hooks are triggered except commitizen.
So the question is – how can I check if commits which will be added by MR follow the commitizen format ?
How to run commitizen hook witg pre-commit run ?