Commitlint falls back to the last commit message, which is stored in _.git/COMMITEDITMSG. This PR has updated the script to touch the file. In CI systems, this will create an empty file, which is always a valid commit message.
The proper fix is to set pass_filenames: true in the hook setup and revert the shell script.
Originally posted by @FabianScheidt in https://github.com/HotSprings-GmbH/data-science-project-template/issues/14#issuecomment-1910796503