Rebase functionality for "Update branch" button #3245
Replies: 13 comments 37 replies
|
This space is currently reserved for feedback on Discussions and GitHub for Mobile. This is noted in our README and the pinned discussion. All other feedback at this time can be shared through our support channel or our community forum. |
|
It seems the button was removed altogether today. Any news regarding that? |
|
This is the biggest thing that I miss after moving from GitLab. The |
|
I am SO EXCITED this landed https://github.blog/changelog/2022-02-03-more-ways-to-keep-your-pull-request-branch-up-to-date/ - but, is there some way i can disable "update branch" while keeping "rebase branch"? Nobody ever wants a merge commit inside a pull request :-) |
|
is there a way to disable 🙏 |
|
Cheers for the feature. One question is how to choose email while clicking "update branch"? I have different emails for organizations and personal use. |
|
Hi guys, is there a way to restrict only rebase button? Because if a new contributor does not press the arrow option to select rebase button it will automatically run the "update branch" with the merge functionality. |
|
I see this conversation started to support an 'Update branch' with an update by rebase option, which is nowadays available. This conversation is considered answered. I found this other recent conversation (still unanswered) which is specific to allow configuring the possible/default options for the 'Update branch' button, which is what a lot of people in this thread is wishing for. |
|
Is there any way to set the default op to be "rebase" rather than just "update" ? |
|
The solution by @fabiendem works, but I'd like to rephrase for the benefit of others, as I missed the point of his comment (that you need a ruleset that specifically tagets the PR branches). The trick is to have a ruleset for master (include default) and a separate rulset for everything else (all branches excluding default) which forces linear history. That way, the merge button gets disabled and it defaults to rebase. Edit: Somehow the following trick of enforcing linear history on non-master/main has stopped working for me, which is frustrating. |
|
I'm seeing this / a similar issue where: Toggling on "Require linear history" for a feature branch directly takes away the option to "Update with rebase" from the "Update branch" drop-down in a PR, leaving only "Update" (which does an "Update with merge commit"). This is backwards since one cannot create Merge commits when "Require linear history" is on. |
|
Anyone else always see "Update branch" the first time a PR page loads, then on refresh it says "Rebase branch" instead? If so, please vote: |









Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
Right now, GitHub shows "Update branch" button when the base branch is outdated.
On clicking "Update branch", it creates a merge commit for the PR which merges default branch into PR branch.
It would be nice if this had a "rebase" option, rather than creating a merge commit
Describe the solution you'd like
A "rebase" option to update PR branch, which can be configured in
Update branch buttonsettings which allows choosing between merge and rebase.This could be similar to existing "Merge button" settings.
Describe alternatives you've considered
Additional context
Prior discussion in isaacs/github#1113 (comment)
All reactions