-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
PRs cross Gitea instances #15392
Comments
This sounds great. How will it be assured that the hidden mirror is kept in sync with the remote? How would it affect operations if the hidden mirror got out of sync? Probably some API work could to be done for the receiving end to determine if a recent version is targeted or not and refuse the PR based on that, I don't know. Would it sync before every user action targeting the remote (such as opening a PR to a remote), potentially warning the user that their changes are targeting an old version of the branch? Wouldn't it be wasteful to in fact create two clones of the same repo just to have the user open, say, a What if the remote repo is already huge, requiring twice the amount of disk space for this kind of operation locally (and excluding I could imagine it might become a bottleneck for many in terms of federated collaboration in this manner, in effect preventing adoption. |
+1, that would make a great feature. How would that look in the UI though? If the repo is forked from another instance that should be displayed in the UI, but otherwise the process should be mostly the same as using forks/PRs locally.
Is there any plan to support more than other Gitea instances in the future, for example by allowing to open PRs from URL?
The easiest way would be to use webhooks. So for example you add a webhook in the source repo that notifies the fork on the other instance about new commits. The fork then could update itself by using the existing API. The problem there could be that the source repo could get cluttered with webhooks when many forks exist. Also, keeping instances in sync that are not online 24/7 could require some more work.
I guess by doing that its possible to reuse most of the current fork/PR logic, but i would also be interested if other solutions are possible.
Would it be sufficent to do shallow copies for remote forks ( |
The text was updated successfully, but these errors were encountered: