Configure a webhook on Gitlab
To create a webhook, go to your Gitlab repository, then to the “Settings” page, and then the webhook creation page.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed