-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling Update branch
button
#98
Comments
@luisfmsouza I have a different opinion about this point. I like to enforce branches to be up-to-date with master always, so the "Update branch" button is just a try, exactly, to prevent asking people to do rebasing themselves. Even though your print is showing a noisy, the master timeline is kept untouched and clean How to garantee the PR is up-to-date with master and we are not loosing anything? I'm not sure if only in conflicted state this could happen... Anyway, I'll change the settings and we can give it a try ✌️ |
Let's try it. |
Sorry for an off-topic question but how have you managed to disable the 'Update branch' button? I was sure that it is impossible to disable it (see those comments). |
@rsp we don't "disable" the button as you may be thinking, we just remove the check forcing branches to be up-to-date with master. Personally, I prefer to keep this ON, but as @luisfmsouza said, it adds some misunderstanding on novice people and difficult contributions with some kind of So far, so good! We had no problems without this option 🙂 |
This was extremely valuable information for me! I'm glad you shared it! 👍 I added the "Require status checks to pass before merging" rule with the aforementioned "Require branches to be up to date before merging" rule at the beginning of a testing period. Because of the low intensity of coding (to main branch), we did not come across the "Update Branch" button for days and on one hand, I forgot I added such a rule, and more importantly, I expected this button to rebase the PR HEAD branch onto the base branch but instead, it creates a merge commit. We use rebase everywhere, so we'd like to avoid merges. This way, we had to manually rebase our branches which was a headache. Currently, the update strategy of the Update Branch button cannot be configured. Actually, there is an issue related to this: isaacs/github#1419 |
Any update here? I'd like to see the option of enforcing this without the button present. Devs can rebase on their local and push rather than use the button. |
Think we can disable this
update branch
button (image below) from PR on this repo settings. This button is just adding some noisy to all opened pull requests, because it enforces the branches to be up-to-date with master all the time, and we had to be requesting rebasing/squashes.Button:
Example of the noisy:
Even when we disable the button, Github will guarantee to use integrity of the code. And also, it will tell us when there's a conflict between branches, the we can act directly on it before merge. Otherwise, there's no need to be up-to-date with master all the time.
The text was updated successfully, but these errors were encountered: