I would like to ensure if my commit message contains a given string using pre-commit. I tried using a pygrep based hook, but it does not handle the multiline as expected.
For example, my commit message is:
My commit message
Changelog: trial
I want to validate that the commit message contains "Changelog:".
Does anyone have an idea?