renovatebot-pre-commit-hooks/README.md
2022-07-06 12:51:41 +03:00

945 B

Renovate pre-commit hooks

A pre-commit hook to run renovate-config-validator when you reconfigure Renovate via PR.

Even though it is a Node-based hook, it works without any system-level dependencies.

Usage

repos:
  - repo: github.com/renovatebot/pre-commit-hooks
    rev: 32.105.2
    hooks:
      - id: renovate-config-validator

You can also use renovate-config-validator-iter in a project with multiple configurations by listing the configurations in the files field

repos:
  - repo: github.com/renovatebot/pre-commit-hooks
    rev: 32.105.2
    hooks:
      - id: renovate-config-validator
        files: |
          (?x)^(
            (^|.*/).?renovate(?:rc)?(?:\.json5?)?$|
            ^default\.json
          )