mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-27 05:46:07 -05:00
Single-action web UI for a fork to fast-forward pull from origin (Sync fork) #9434
Closed
opened 2025-11-02 08:38:39 -06:00 by GiteaMirror
·
11 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3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v1.3.3
v1.4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#9434
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @wolftune on GitHub (Aug 20, 2022).
Feature Description
As appears to have been requested in https://github.com/go-gitea/gitea/issues/2488 but never achieved… This is what should be doable more easily:
Imagine a web-ui user (e.g. a contributor who is helping with docs and is not comfortable with Git or CLI etc) who only makes changes on branches of their fork, keeping their main branch locked to the origin's main.
Right now, these several-too-many steps are required for those using the web ui:
<code>or the fork title to return to the overview of the forkThat's a lot of steps for what could easily be a single button "fast-forward to latest origin" which could show up whenever origin is ahead of the fork, and it would pull with
--ff-onlyand just stay right on the main fork view.For those comfortable with Git, they might skip the Web UI anyway. For those not comfortable, this Web UI process is almost hostile. Without the button I'm requesting, there's no way to easily onboard the sort of contributor who is most comfortable with web UI and have simple instructions about how to use the Web UI to make a fork and keep its main branch updated.
@splitt3r commented on GitHub (Aug 21, 2022):
GitHub already has this function and it's pretty neat. Ref https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork.
@kousu commented on GitHub (Dec 12, 2022):
#2488 seems to have been satisfied with using PRs for this.
It took me a bit to figure that workflow out, but it is working for me:
Here's my upstream:
and my fork:
If I click this on my fork
I get this prompt and have to swap the source and target branches
Alternately, I can click the New PR button on the PRs page:
and then choose the upstream branch
In either case, I get to this page, with the diff shown:
and I can submit it as a PR.
But again, it took me an embarrassingly long time to figure this out. I 👍 for having a single-click button for the extremely common case of syncing with upstream.
@wolftune commented on GitHub (Dec 13, 2022):
Thanks for documenting the workaround. It needs also the specific step of making sure to then switch to the fast-forward style of merging. Room for error and quite a hassle, so definitely not ideal. But workarounds are better than nothing. Definitely a sync-with-upstream button is the way to go.
@jnahmias commented on GitHub (Jun 7, 2023):
This is what it looks like in GitHub:

@jfirwin commented on GitHub (Sep 13, 2023):
Any idea why my fork wouldn't be showing the upstream branch? So far I've had to manage it with the command line and I'd love to be able to do this using @kousu workaround (eventually a single click button would be ideal).
Edit: The upstream is a Github Mirror, if that changes anything.
Edit 2: I was able to find the upstream branch by manually inputting the URL as was suggested in this issue https://github.com/go-gitea/gitea/issues/24585, looks like it's time to update gitea
@wnm210 commented on GitHub (Nov 17, 2023):
Single-click button when
@alfred-liu96 commented on GitHub (Aug 6, 2024):
hope gitea can have the same function
@vtolstov commented on GitHub (Dec 6, 2024):
this will be very useful to have
@wxiaoguang commented on GitHub (Dec 6, 2024):
OK, then we will have it in 1.23
@wxiaoguang commented on GitHub (Dec 6, 2024):
Now here it is: Support "merge upstream branch" (Sync fork) #32741 , it catches up the 1.23 release milestone.
@lunny commented on GitHub (Dec 6, 2024):
Resolved by #32741