[Proposal] add option to update pull request by `rebase` #7406

Closed
opened 2025-11-02 07:25:02 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @a1012112796 on GitHub (May 29, 2021).

As we all know, do git rebase main(base_branch) and then force push to the head branch also can set the base of head branch update to the base branch, So I think maybe we can also add it as
a optional way on ui. Thanks

Originally created by @a1012112796 on GitHub (May 29, 2021). As we all know, do ``git rebase main(base_branch)`` and then force push to the head branch also can set the base of head branch update to the base branch, So I think maybe we can also add it as a optional way on ui. Thanks
GiteaMirror added the type/proposal label 2025-11-02 07:25:02 -06:00
Author
Owner

@lunny commented on GitHub (May 30, 2021):

Didn't we have implemented that? You can find a button named Update when the pull request base head branch moved.

@lunny commented on GitHub (May 30, 2021): Didn't we have implemented that? You can find a button named `Update` when the pull request base head branch moved.
Author
Owner

@nils91 commented on GitHub (May 31, 2021):

The update button does a git merge base_branch to update the PR, not a rebase. I think the relevant function is in
services/pull/update.go.

@nils91 commented on GitHub (May 31, 2021): The update button does a `git merge base_branch` to update the PR, not a rebase. I think the relevant function is in [services/pull/update.go](https://github.com/go-gitea/gitea/blob/main/services/pull/update.go).
Author
Owner

@a1012112796 commented on GitHub (May 31, 2021):

@lunny I know it, It use git merge base_branch, but as we all know, git rebase base_branch can do same thing. So like we provide more than one way to merge a pull request. I think we can also provide more than one way to update pull request also, Thanks.

@a1012112796 commented on GitHub (May 31, 2021): @lunny I know it, It use ``git merge base_branch``, but as we all know, ``git rebase base_branch`` can do same thing. So like we provide more than one way to merge a pull request. I think we can also provide more than one way to ``update pull request`` also, Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7406