Closed uuf6429 closed 3 weeks ago
@uuf6429 , for me if I’ve squashed last PR, then on next PR I’ll get squash merge option selected by default.
Checked in repo settings and haven’t found the setting you’ve requested.
I guess we need to uncheck the other options then?
I realised this when I saw the relatively messy commit history for the main
branch.
I've found https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/about-merge-methods-on-github article explaining the usage of each of these merge strategies.
As you can see there is no way to change the default, but only to disable other merge strategies. IMO that is too much, because sometimes keeping commits of the original branch helps to understand what's going on.
Maybe you can ask GitHub Support to add such a feature?
IMO that is too much, because sometimes keeping commits of the original branch helps to understand what's going on.
That should never happen - commit messages are (typically) internal to the branch, and in any case one can always refer back to the PR for what happened exactly (not sure about GitHub, but it might even be able to list the original commits in the PR).
In any case, there's more harm selecting the wrong merge method than there is from not being able to select merge instead of squash. And anyway, it can be changed (temporarily) in case where different behaviour is needed.
Done.
@stof can you please set the default GitHub merge option to "squash"?