-
Notifications
You must be signed in to change notification settings - Fork 129
"Update branch" button for author of PR #1113
Comments
if the PR is from a fork, this should work |
would be nice if this had a "rebase" option, rather than creating a merge commit ... |
@gabrielgrant Yes. Or at least I should be able to disable the button if I prefer rebasing instead of merge commits to keep the PR branch up to date. Right now I have to tell people to never press the button but they still do occasionally. |
@rsp You can already do that in the Settings page. |
@acjh Could you please let me know which option is that? Note that we are talking about the "Update branch" button: Not about the "Merge" button for which there are those options in the Settings: |
@rsp I was mistaken. |
Big +1 for "rebase" option or option to disable the button. |
Up to this date there are 5 major git flows
I fall in the 3 or 4 box. 4 if there's a system that does notify/rebase automatically for me, and 3 where in most cases I try to keep my topic branch up-to-date, but I won't fret if it's not. Why? Because I know that this is what
For some unknown reason to me Github is doing anything but trying to help me keep a clean history, no matter what, and this "Update branch" (which I can only assume that everyone, even merge lovers, assume that it is equivalent to rebase PR on top of destination branch) makes no exception. What I see beneficial to everyone is
I really don't want to sound negative, but I don't understand how such a simple but core thing to git work has been overlooked and left to hacks (neat nevertheless) like https://github.com/tibdex/autorebase . PS: sorry for the wall of text |
Please just add an option to disable the Update branch button. It is extremely hard to get everyone in the team to follow the 3+4 flow described by @andreineculau when the update button is so easily accessible. |
Could we also have squash branch functionality? All of the nitpicky repo crave for people to squash their pull request even they could squash on merge. So the squash and merge just become useless feature. I need to squash my branch just for fixing 2 files or else they will not welcome the fix of their bug |
Instead of disabling the
|
@andreineculau fwiw, gitlab makes it simple to do exactly what you're asking for: when a PR (or Merge Request, in GitLab parlance) is out of date, it shows that "rebase" button that is still sorely-missing from GitHub's UI (Since I requested that a couple years ago above; it has become by far my most popular ever comment on github :P ) After hitting rebase, GitLab immediately shows that auto-merge-after-checks-pass that you're asking for: So takes two clicks (with no waiting in between) rather than the one that you asked for, but I'll take it :) These together are two of several reasons i've moved most of my serious private projects over to GitLab |
bump |
We very much need I cannot count the number of times we have had to un-tangle the mess this creates in our PRs. |
+1 on this one. |
+1 |
GitHub now accepts public feedback in https://github.com/github/feedback#github-public-feedback-discussions I've created a Discussion for the rebase functionality at community/community#3245 |
If the author of a PR wants to incorporate the latest changes that have been made in
master
since the PR has been submitted, it is currently cumbersome and only possible on the terminal for the author of the PR to update the PR to incorporate the changes:This button should be available to the author of the PR (it is available to the owner of the repository):
cc @TheAssassin
The text was updated successfully, but these errors were encountered: