pre-commit-crocodile¶
Git hooks manager intended for developers using pre-commit, prek and commitizen.
CI/CD components¶
GitLab CI/CD Catalog: https://gitlab.com/explore/catalog/RadianDevCore/tools/pre-commit-crocodile
commits - GitLab CI job to validate newly pushed commits¶
Validate commits added on a branch or for a merge request :
- Show commits specifications and syntax examples
- Check commits automatically with
commitizenconfigurations - Run pre-commit checks on all files
- Deny
WIPcommits on GitLab branches
Sources / .gitlab-ci.yml
include:
- component: gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commits@X.Y.Z # Adapt to latest release tag
# remote: https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/-/raw/X.Y.Z/templates/commits.yml # Use on self-managed GitLab instances
inputs:
stage: prepare
stages:
- prepare
- ...