Config-help: Question: How to commit a default renovate.json file in onboarding PR?

Created on 16 May 2018  路  2Comments  路  Source: renovatebot/config-help

_Using self-hosted service_

What would you like Renovate to be able to do?
At the moment, Renovate creates an onboarding PR with an empty renovate.json file. I'd like Renovate to commit a default renovate.json (by providing the path to the file) to this PR, otherwise I'd have 100+ repos to manually add a configuration file.

Describe alternatives you've considered
I tried adding the environment variable RENOVATE_CONFIG_FILE on repositories with and without Renovate configured. i.e. Running the renovate command on a repository that requires an onboarding PR (I guess it is expected that this doesn't work) and running it on a repository that already has a renovate.json. Are there any specifics to use for this environment variable to work?

Any help would be appreciated, thanks!

Most helpful comment

Hi, please try the onboardingConfig option. You can configure it in config.js or as stringified JSON in env (RENOVATE_ONBOARDING_CONFIG.

All 2 comments

Hi, please try the onboardingConfig option. You can configure it in config.js or as stringified JSON in env (RENOVATE_ONBOARDING_CONFIG.

This lets you specify which config is added in the renovate.json on all future onboarding PRs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenniesyip picture jenniesyip  路  3Comments

acabreragnz picture acabreragnz  路  6Comments

sjparkinson picture sjparkinson  路  5Comments

simoneb picture simoneb  路  10Comments

sidharthachatterjee picture sidharthachatterjee  路  8Comments