-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitea: use repo topic as a cache #18921
Comments
so basically you like to use a tag to disable repos from being processed by renovate. so this can maybe implemented like the experimental autodiscover server filter I've done recently. |
@viceice Quite close -- except I want to manually cherrypick the repos I want to auto-discover on |
🤔 @stevefan1999-personal Please try to describe in more detail how you think this should work. Renovate currently does this:
|
@viceice Yes I know, except I don't want to auto discover too much repo -- right now we have over 100 repos and I don't expect to clone them one by one because it will thwart our Gitea instance. I want to use the topic instead to act as a filter without having to set the This RBAC permission problem is specifically for us, so just think of it as a little shortcut for probing the candidates of autodiscovery targets by leveraging the topic feature to eagerly filter the search space early on. |
ok, so what you like is to add a new topic1 filter here: renovate/lib/modules/platform/gitea/index.ts Lines 349 to 354 in 3c56aec
So a repo needs a specific topic to be returned if it's defined. Footnotes |
checkout this pr for implementation details |
@viceice Thanks! Actually I did look up there before and know what to do but I'm gotta rest for now |
What would you like Renovate to be able to do?
I want to use the autodiscovery feature but I don't want to pull the repo every single time, causing a huge spike in our potato server. I don't want to use a cache either because there can be multiple instances of Renovate running at the same time (for different Gitea servers too, including my company ones and my personal ones) and using a consolidated cache would cause some synchronization issue. We are using a K8S cronjob for this so we can't afford to update the repo every time we make a new one. Obviously, we wanted a more dynamic choice.
This would greatly reduce the need for manually configuring the repos, while still keeping a clear intention to the rest of my teammates.
If you have any ideas on how this should be implemented, please tell us here.
We can use the Gitea topic support to filter projects that are manually tagged to want to onboard, like if the repo is tagged with
renovate-managed
.If the filtered repo with topic does not have the config.json/config.js, it is considered to be in onboard mode.
Say if I have a
stevefan1999/foo
repo tagged withrenovate-managed
, and Renovate only clones that, tried to scan but not seerenovate.json
/renovate.js
, we send aConfigure Renovate
/onboarding PR for that.Is this a feature you are interested in implementing yourself?
Maybe
The text was updated successfully, but these errors were encountered: