Is there a way to merge some of the commits when merging a pull request but not all of them?
I know that one of the merge strategies is to squash all of the commits into one when merging. However, what I am looking for is to be able to squash all commits that have a specific template for the message e.g "update something *" into one commit which is the latest commit. How can I achieve that?
Is it a server side git hook? or a custom merge strategy? Is that even possible?