Server hooks on a gitlab.com repository

Are server hooks possible on a gitlab.com repository?

Or is this feature only available on gitlab ee

Hi,

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?

Cheers,
Michael

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 rubygems.org. 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