The fmt command formats and normalizes the changelog file.
But to check if the file is formatted correctly, we need to run something similar to:
diff -u <(changelog fmt -f CHANGELOG.md) CHANGELOG.md
We can simplify this code to:
Which is useful specially for CI environments.