Rebase functionality for "Update branch" button #3245
-
Is your feature request related to a problem? Please describe. 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 This could be similar to existing "Merge button" settings. Describe alternatives you've considered
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 31 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. |
Beta Was this translation helpful? Give feedback.
-
It seems the button was removed altogether today. Any news regarding that? |
Beta Was this translation helpful? Give feedback.
-
This is the biggest thing that I miss after moving from GitLab. The |
Beta Was this translation helpful? Give feedback.
-
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 :-) |
Beta Was this translation helpful? Give feedback.
-
is there a way to disable 🙏 |
Beta Was this translation helpful? Give feedback.
-
Cheers for the feature. One question is how to choose email while clicking "update branch"? I have different emails for organizations and personal use. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Is there any way to set the default op to be "rebase" rather than just "update" ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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 :-)