Server hooks on a repository

Are server hooks possible on a repository?

Or is this feature only available on gitlab ee


since installing server side git hooks requires administrative permissions, you can only do that on self-hosted GitLab Enterprise installations. Maybe you can achieve your solution with web hooks too?


1 Like

Many thanks @dnsmichi, will try investigating the webhooks, appreciated :slight_smile:

I meanwhile had a go at developing and releasing a Ruby gem, served on Details of the gem are available from here.

Install with:

gem install gitlab-lint-client

Usage for the CLI is:

glab-lint -h

The source code is available from here. The repository also serves a pre-commit hook rule called validate-gitlab-ci.

1 Like