tools: avoid fetch extra commits when validating commit messages
We only need the number of commits in the PR, plus one for the merge commit.
I couldn't figure out a way to compute the + 1
operation without an extra step, if someone knows a cleaner way please chime in.