Dynamic defaultOnboardingPreset location #31121
jvmdc
started this conversation in
Suggest an Idea
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
We're currently in the process of migrating from a platform (BitBucket) that has nesting to a platform that does not (GitHub).
In our previous setup, each area would be grouped under a project in BitBucket and would thus be able to create a
renovate-config
repository that would be auto-detected as part of onboarding. In GitHub, it would only be possible to have one repository in the entire organization that does this.Our repositories follow a naming convention of separating components of the name by dots, sort of emulating a nested hierarchy, e.g. the following could all be repositories:
etc.
I would love to be able to override the locations that Renovate look for the default onboarding preset dynamically. I am thinking being able to pass in a
function(repositoryName: string) => string
that we could then do whatever inside to make it look in the correct location for us, e.g. when onboardingMyArea.MyPackage
, it would look inMyArea.RenovateConfig
or similar.Alternatively, it would be nice to override it with a static string. I initially thought it was using the setting
inheritConfigRepoName
for this purpose, but I see the code (https://github.com/renovatebot/renovate/blob/38.58.0/lib/workers/repository/onboarding/branch/config.ts) does not refer that. If the string was static, I could group repositories in my script that spawns Renovate by each logical grouping and tweak that setting for each group.Beta Was this translation helpful? Give feedback.
All reactions