Repository is a fork and not manually configured (with includeForks: true)
Closed this issue · 10 comments
This repo has includeForks
set to true, however, the bot is throwing the following error in the logs & doesn't continue.
Repository is a fork and not manually configured - skipping
I can't see anywhere in the code this scenario would make sense other than if the renovate JSON was being misinterpreted.
It seems we haven't documented this properly, because it's only supported when the file name is renovate.json
Because when it's a fork we don't want to clone the whole repo just in case it has a config file. Instead we do a single API request to check if renovate.json returns a value and then checks if it includes the field. Therefore can't be in .github either.
The hosted app has been installed into 100,000 forks so the difference in load on GitHub is significantly less by avoiding a clone.
Ouch, alright; that makes a lot more sense.
If I add a renovate.json
into the root of the repo with the following, will it go and look for the other file?
{ "includeForks": true }
Unfortunately I think renovate.json takes preference
We may be able to do some git tricks to fetch just a file list or limited clone but would need research done first
Ah, so sparse checkouts/clone filters/etc.? That'd be way better than cloning the entire repo
I'd also be in favor of a proposal to support this behavior. In the meantime, it'd probably make sense to update this portion of the docs to reflect this behavior.
I tried looking for a docs repo but couldn't find one. If you can point me in that direction, happy to submit a PR
Check out the docs/ folder in this repo for sources
I'm going to archive this repository so that we have conversations in one place. Therefore please create an "App Support" discussion here if this problem or suggestion is still relevant: https://github.com/renovatebot/renovate/discussions