Self hosted renovate: advanced filtering for selecting repositories #10465
Closed
amimas
started this conversation in
Suggest an Idea
Replies: 2 comments
-
I think this is now doable at least as of version 37. There are additional "autodiscover" config options such as: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently self hosting renovate bot and running it in CI as a scheduled pipeline. The bot is currently run as shown below:
All of the above is being run in parallel as separate CI jobs in different machines. I'm planning on adding a new group to the pipeline in the same manner. This new group has a lot more repositories than what is currently processed. In my local machine running in dry-run mode, it took about 4 hours to complete.
It would be great if the
autodiscover-filter
could be more more than just glob-pattern, which is only targeting repositories by name. Or, maybe a new filtering option so that the bot could process more repos in parallel.Both Github and GitLab allows setting "topics" for each repositories. GitLab's API allows listing projects by topics and I assume Github does that also. We can use this for targeting repositories, for example:
The main goal here is to be able to speed up the processing/execution time by running the bot in parallel.
Because the
autodiscover-filter
option specifically targets repo name, it's a bit constrained. Another option could be enhancing howautodiscover-filter
behave. For example: should the pattern matching be done against repo name or some other meta data (i.e. topic).I can see 2 potential issues with targeting repositories by topics, which I haven't thought through yet.
For the 2nd item above, a scenario could be one project has topics
backend, service
, a second project hasfrontend, service
, and a third project hasmonitoring, service
. Then doing the following would be inefficient. However, I think this more of a user/usage issue.Beta Was this translation helpful? Give feedback.
All reactions