# tuna and GitLab

GitLab allows adding Webhooks in groups and projects - URLs to which messages about specific events will be sent, for example, tag creation, comment addition, issue editing.

## Step 1. Download the client

Instructions are available on the [installation page](https://tuna.am/en/docs/guides/install.md).

## Step 2. Start a server to handle events from GitLab

Information about the structure of incoming requests can be found in the [official documentation](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html).

## Step 3. Run tuna

Specify your server port in the startup arguments:

```bash
tuna http 8080

```

Or with a static address:

```bash
tuna http 8080 --subdomain=gitlab-webhook

```

## Step 4. Create a new Webhook

Go to the Webhooks section in the project settings, specify the incoming message address and select the events you want to receive: ![gitlab](/en/assets/images/gitlab1-9f923b11f6e30445c68100087e26f6fe.png) The URL consists of the address received from tuna (for example, `https://gitlab-webhook.ru.tuna.am`) and the path to your server method for handling events (for example, `/event`).
