"Sync fork" to rebase my fork (OD-2571)
Andreas Mack opened 3 months ago

I have a fork in my private space of a big, multiuser repo. Usually I make my changes in a branch of my fork and submit it as a pull request. Pull request then gets merged (rebase commit). Now my fork master is out of date. To sync it, I fetch the main repo master, rebase my private master and push it to my private repo on the server. For me that is a lot of manual work which should be automated.

This is the normal workflow for pull request: the master of my private repo is always in sync with the main repo master.

Gitea has a button "Sync fork" which does the rebasing on the server and then I can pull my master and I'm in sync. Does onedev have such a button too? Would you be willing to add it?

  • Robin Shen commented 3 months ago

    You may add a CI/CD job (either in this repository, or in other repositories) to do the job with the pull repository step. Then you can run the job when necessary to sync the fork.

  • Andreas Mack commented 3 months ago

    Seems to work, thanks. Not that easy though as "just a button" ;)

  • Andreas Mack changed state to 'Closed' 3 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2571
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover