Before you can add your webhook to GitLab, you'll need to [retrieve it](https://www.deployhq.com/support/deployments/automatic-deployments#getting-the-webhook-url-for-a-project#getting-the-webhook-url-for-a-server) from your DeployHQ project.

Open your repository up in GitLab (there's a shortcut at the top of DeployHQ labelled "Browse Repository") and navigate to the **Settings** tab on the left hand side of the page, followed by the **Webhooks** sub-menu below: 

{screenshot: 117}

Paste your webhook URL into the **URL** field, ensure only **Push events** are enabled checked within the **Trigger** options, then click **Add webhook** to finish.

Please note, if you're adding the webhook to a self-hosted GitLab repository, you'll need to make sure you select the repository host as Gitlab in your repository configuration first.