GitLab Webhook
Webhooks enable near-instant reactions to MR and pipeline events. Without webhooks, Auto Merge still works via 15-second polling.
- Go to Settings > Webhooks in the GitLab project
- Set the URL:
https://<auto-merge-host>/api/auto-merge/events/from-gitlab - Select triggers:
- Merge request events
- Pipeline events
- Click Add webhook
How It Works
Section titled “How It Works”When GitLab sends a webhook event, Auto Merge immediately triggers a processing run instead of waiting for the next poll cycle. Webhook-triggered runs are debounced to avoid redundant executions when multiple events arrive in quick succession.
Without Webhooks
Section titled “Without Webhooks”Auto Merge polls the GitLab API every 15 seconds. This works reliably but introduces a small delay between an MR state change and Auto Merge reacting to it. Webhooks reduce this delay to near-zero.