Add tests and docs for gitlab hook.