Hi there github!
I couldn’t find a dedicated feature request page, but I wanted to know if there was a way to change the default behaviour for squashing and merging Pull Requests from branches that have one commit vs Pull Requests from branches that have many commits.
If I make a PR from a branch with many commits, before merging, github defaults the squash merge commit message to be the title of the PR. Here’s a screenshot with an example:
But if I make a PR for a branch that has one commit only, the commit message for the squash merge commit will default to that commit message:
Would it be possible to change this default behaviour, or to have an option to change it? The reason is most devs on our team mistakingly forget to update the commit message for the PR if the branch has only one commit, because we usually have more than one commit in our branches. We use the squash merge commit messages as a changelog with ticket/task numbers, so if this happens we either have to revert and recreate the PR or edit the history of the
master branch (which is of course undesirable!)
If I’ve posted this in the wrong place, please let me know and I’ll be happy to repost it somewhere else!