Hi, @brunocc. You must also create a webhook for the site at Netlify and then add that webhook to GitLab so their service will trigger builds at Netlify when a push to the upstream repo occurs.
Our API cannot do this at GitLab. The GitLab APIs are used for this.
When you add a site using GitLab via the web UI we create the webhook using our API. We use your GitLab credential to make API calls at GitLab to add the new webhook to their service. This is how GitLab tells Netlify when a new commit occurs.
So, there are two extra steps:
- Make an API call at Netlify to make a new webhook for the site.
- Make an API call at GitLab to add that webhook to the repo.
If you do this in our web UI and open the browser devtools you will be able to see the exact API calls made to do this and what JSON content the API calls required in the Network tab.
When those steps are completed commits to the GitLab repo will trigger builds at Netlify. If there are questions about this, please let us know.