When "Squash & Merge" a branch in a PR, the default commit message is either:
- the commit message of the the commit in the PR, if the PR has a single commit;
- the title of the PR's and the description from all commits' titles, if the PR has more than one commits.
As this behavior is inconsistent, it often result in inconsistent merge messages. Is there a way to configure the default commit message for "Squash & Merge"?
I've always thought you could just change the commit message while comitting? If you're talking about changing the deafult one, I don't think so.
Big +1 to being able to change this. I'd love for the default squash and merge message to be the PR description (raw markdown text with commentst stripped out). In our workflows, the PR description contains much more meaningful content than the individual commit messages on a branch.
Thanks for this feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've shared your feedback with the appropriate teams for consideration.
Please let me know if you have any other questions.
I'd really like this too. The whole reason our team uses Squash and Merge is to remove all our awful "fix a typo", "lint", "$#@*#!" commit messages. We force developers to write a clear description as a condition of a PR being considered "reviewable".
This feature would be amazing to have! We don't really care about the commit history when merging and any pertinent information is always avaiable in the PR description. A configuration to pull in the message from the PR's description would be really helpful.
+1 to this enhancement! We force everyone to squash and merge PRs in our repo so the individual commit messages within the PR are just for the PR author. All the squashed commits aren't relevant in the final commit description, so we would rather just automatically use the PR description. Thanks!!