It would be great to have unit tests, e.g. with pytest. The setup could be to create a mock Git repo, create some commits from different authors, and check the output against the JSON we'd expect.