-
-
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
Give an option to disable Sync Fork #33264
Comments
I can not understand this. IIRC, fork repo does not have action unit.
Also, I can not understand this. Generally, it is used for GitHub Flow, sync the main branch of your fork (your workspace). |
In 1.23.1, the "sync fork" only syncs the base repo's default branch, is it still a problem? And if the repo diverged and there are conflicts, the sync will report a failure and won't do anything. |
As a quick (and backport-able) enhancement, we can do this: Add a confirm dialog for "sync fork" #33270 |
Hi, since you asked, here's a little more detail on our use case: Prerequisites:
Now the problem - Forget about SQL, lets focus on something more simple:
#33270 is sufficient to prevent this. It doesn't take the possibility of breaking due to unawareness (which a possibility to disable the button would), but it at least prevents accidentally breaking everything. Right now I have to tell my Devs: "Hey, there's a cool new Sync Fork button. But no matter how curious you are, do not click it, also be careful to not click it by accident and watch your cat not jumping on the keyboard, as there is no confirmation and it would instantly break our live system" With #33270 it's just "Hey, there's a cool new Sync Fork button, but don't click it without consulting Tech-Lead before" which is fine. |
Try to quickly fix go-gitea#33264
Backport #33270 by @wxiaoguang Try to quickly fix #33264 Co-authored-by: wxiaoguang <[email protected]>
Feature Description
Hi,
the Sync Fork button is kind of like a red nuclear button at the moment.
It works and is very useful for sure, however it does not ask for any confirmation nor does it give any summary on what it would do - It just does it right away.
There are projects that started as a fork, but diverged in a way where it's not safe to just sync them with a push of the button, because it needs prerequisites, like changing SQL tables or requiring configs to be set in .gitignore'd files etc.
This is especially dangerous if the CI in the repo auto-deploys pushes to master into production systems.
Please either
Best Regards
Screenshots
No response
The text was updated successfully, but these errors were encountered: