Configuration files for renovatebot installed in repositories.
- This repository is called
renovate-configso it'll be picked up automatically by Renovate. - The shared config preset is called
default.jsonas that's the only supported name. default.json5is the actual preset referenced fromdefault.json, so that I can use JSON5 features.
- Add repository to Renovate GitHub app installation.
- Wait for "Configure Renovate" onboarding PR.
- It should automatically pick up local>TWiStErRob/renovate-config
- Commit and push to
renovate/configurebranch. - Review, configure as necessary and merge PR.
IntelliJ IDEA has json-schema validation and auto-complete support, so it the recommended editor.
Each file should have this as the first property to trigger automatic setup when opening files:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}This will pick up config.js and will do a dry-run.
# Make sure the latest version is installed from package.json.
npm install
# Make sure renovate can read the repositories.
set RENOVATE_TOKEN=ghp_...
# Edit config.js as necessary, mostly repositories and configFilePath.
# Set up logging (see config.js for more info, why.)
set LOG_LEVEL=debug
# Execute renovate on any repository (public or private).
npm run renovate > renovate.logghp_...
Where ghp_... is a Personal Access Token generated at https://github.com/settings/tokens.
-
add
user:emailscope to reduce warnings -
add
reposcope for accessing private repositories--tokenvsset RENOVATE_TOKENIt's possible to pass the token on command line too:
npm run renovate -- --token ghp_...
but
npm runwill echo the command line so renovate.log will contain the key. To prevent this, useset RENOVATE_TOKEN=ghp_...instead.
This means running Renovate on a repository where the configuration is hosted in the repository, and the Renovate app will process everything.
Hack around in renovate-config-test.
- How to reference files
- Doc of default presets
- Source of default presets
- renovatebots' own configuration
- Base config: renovatebot/.github/default.json
- Onboarding config: renovatebot/.github/renovate-config.json
- Main repo: renovatebot/renovate/renovate.json
- Docs: renovatebot/renovate.github.io/renovate.json