Here are the hooks for a blessed repository.
The post-merge
hook generate the docs using yiisoft/yii2-apidoc
and measure the LOCs with
sebastianbergmann/phploc.
As post-receive
notification system, the script suggested at http://www.fclose.com/1473/setting-up-git-commit-email-notification/ has been chosen.