Using system hooks

When you create or delete a user or project, you might want to be notified, or you might have a backend system from which you want to receive notifications for this type of events. GitLab has support for this in the form of system hooks. In this recipe, we take a look at how you can set up system hooks for your GitLab instance.

The following events can trigger a system webhook call:

  • Project created
  • Project destroyed
  • New team member
  • The team member is removed
  • A user is created
  • The user is removed

How to do it…

In the following steps, we will set up the system hooks:

  1. Log in to GitLab as an administrator.
  2. Go to the Admin area section.
  3. Click on Hooks.
  4. As we want to have a place to test the webhook without having to create a lot of software for ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.