Skip to content

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

Closed

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

Activity

  1. maxbrunet commented on Apr 12, 2025

    @maxbrunet
    Collaborator

    The files key of the hook can simply be overridden in the .pre-commit-config.yaml

  2. kastl-ars commented on Apr 29, 2025

    @kastl-ars
    Author

    Thanks, I will give this a try.

  3. locked and limited conversation to collaborators on May 6, 2025
  4. converted this issue into a discussion #2981 on May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    Priority

    None yet

    Datasource

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions