git clone git@github.com:runely/update-renovate-config.gitnpm i- Create a
renovate_preset.jsonfile or renamerenovate_preset_example.json, containing your newrenovateconfig to be used in all your repos - Create a personal access token with
repo scope - Create a
.envfile:GITHUB_USERNAME=<GitHub username where personal-access-token is created> GITHUB_PERSONAL_ACCESS_TOKEN=<personal-access-token> GITHUB_REPO_USERNAME=<Add this line to fetch repos from this user> GITHUB_REPO_ORGNAME=<Add this line to fetch repos from this organization> RENOVATE_CONFIG=<Full path to renovate_preset.json file> RENOVATE_COMMIT_MESSAGE=<Your own commit message. If set to empty or removed, a default commit message will be used>
Make sure GITHUB_USERNAME has read/write access to both GITHUB_REPO_USERNAME and GITHUB_REPO_ORGNAME!
If both GITHUB_REPO_USERNAME and GITHUB_REPO_ORGNAME are set, GITHUB_REPO_ORGNAME will be used!
- Run
npm run get-reposto create arepos.jsonfile in thedatafolder containing an array of all your repos - Run
npm run get-renovate-reposto find which repos actually use renovate - Run
npm run clone-reposto clone down a fresh copy of all repos. They will be saved in./reposfolder - Run
npm run update-reposto updaterenovateconfig in all repos
❗ This tool will only modify and commit to a repository if:
- It's not archived
- It already has a
renovate.jsonfile renovate.jsonfile is different fromrenovate_preset.jsonsetup earlier