DEV: generated release notes shouldn't include squashed commits (PR #10936)

Limit git log output to the first line of the commit message when generating the list of commits in a release. Some commit messages are including the names of all commits that were squashed, resulting in duplicate and confusing lines in the release notes.