I have a private angular project repo and new to it and installed renovate plugin on GitHub. It has created a basic config in renovate.json as below
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}
Then did some reading and this was recommended for Angular project (could be wrong)
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"github>angular/angular:renovate.json"
]
}
I have a few questions
- Is this config correct or can you recommend something better?
- Goal is to get notified for new
package.jsonupdate and get a PR pulled for it so that I can build locally, test and merge manually - Any way to auto tag these PR with the default GitHub label of
dependencies - Will it create a single PR for common package updates?
- If I close a PR without merging if I feel I don't want to do it, how do I not make it recreate it?
- Is there a way to not suggest major upgrades if build fails or should we still create PR and leave it failed?
New to this and basically looking for a recommended config for my project. Any other plugin or option to add, please let me know
This is what I have currently done
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"github>angular/angular:renovate.json"
],
"labels": ["dependencies"],
"pinDigests": false,
"lockFileMaintenance": {"enabled": true}
}
Thanks
Please note that SO is meant for specific question rather than opinionated / looking for recommendations questions. I will however answer some of your questions.
I don't think extending
github>angular/angular:renovate.jsonbrings anything. Not sure where you read that. The file doesn't even exist.Yup, that's out of the box Renovate behaviour.
As you find out,
"labels": ["dependencies"]does the job.You can also use the
labelpreset.It depends what you cann "common packages". For Angular for instance, it will create a single PR for all angular-xxx modules yes.
Depending on the manager, this can be done automatically if the manager has a notion of "group" like Maven for instance. For NPM I believe it's driven by the
@angular/prefix and/orgroupspresets, like https://docs.renovatebot.com/presets-group/#groupangularmonorepo.That's the default behaviour.
You can enable the dependency dashboard to have an overview of closed PRs.
IMHO you should leave it fail, that's the purpose of Renovate: letting you know there's an update but your code doesn't work with it yet. You may close the PR or just keep it until you fix your code.
Overall, just start using it and over time if you have a specific need, dig into all the possible options to customize your experience.