This is the source code used in this basic tutorial about how to use git hooks with husky and commitlint to make sure that your commit messages always have a reference ticket number according to conventional commits.
https://www.youtube.com/embed/xsPQZ08CTc8
For more to read, check out my blog post about githooks.