Skip to main content

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.

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

Information about the structure of incoming requests can be found in the official documentation.

Step 3. Run tuna​

Specify your server port in the startup arguments:

tuna http 8080

Or with a static address:

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 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).