Skip to main content
webhooks.gitlab() checks the secret token GitLab sends in x-gitlab-token on every request.
/trigger/gitlab.ts
To run a subscriber only for some events, add a filter on header.x-gitlab-event.

Set up GitLab

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. Choose Generate secret on the Trigger.dev endpoint and copy the value.
  3. In the GitLab project or group, go to Settings > Webhooks and add a webhook with the webhook URL. Paste the secret into Secret token and select the triggers your subscribers need. GitLab sends the event name in the x-gitlab-event header.
  4. Send a test event from GitLab, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.