Skip to content

How to check all files in a repository containing "centralized" renovatebot configuration? #2893

@kastl-ars

Description

@kastl-ars

Dear maintainers,

we have a repository that holds *.json files containing different renovate configurations. Those files are being referred to in other repos using extends, i.e. we have only one line in each repo's renovate.json.

So it would be crucial to not mess up the centralized configuration files. I would like to use pre-commit as one part (and a GitlabCI pipeline later).

How would I supply the list of files to check with the pre-commit hook?

I found the RENOVATE_CONFIG_FILE variable in the docs, but how would I set it in the .pre-commit-config.yaml? Can I use a wildcard (*.json)?

Thanks in advance!

Kind Regards,
Johannes

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions