til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Hide the config

Oftentimes you see you root of you repository becoming cluttered with configuration files for various tools and services.

I have started to move these files into a .github directory, which is a convention for GitHub.

Renovate also supports this, so you can move your configuration file into .github/renovate.json.

This is a nice way to hide the configuration file, but it also makes it easier to locate, since you know where to look.

You can store your Renovate configuration file in one of these locations:

  1. renovate.json
  2. renovate.json5
  3. .github/renovate.json
  4. .github/renovate.json5
  5. .gitlab/renovate.json
  6. .gitlab/renovate.json5
  7. .renovaterc
  8. .renovaterc.json
  9. .renovaterc.json5
  10. package.json (within a “renovate” section, this is however deprecated)

So for GitHub I prefer and recommend option 3.

  • .github/renovate.json

Resources and References