Configure a Webhook in GitLab
A. Create a Webhook API token from ARM
Log in to ARM.
Click on Admin -> API Token.
Click on 'Create API Token.'
Enter the token name.
Select Type as âwebhook.â
Enter a Description if required.
Click on 'Create Option.'
Your new API token is created.
B. Create a Webhook with Authentication on GitLab
Log in to your GitLab account and select a Repository in which you want to configure a Webhook.
Navigate to Settings > Integrations.
On the next screen, enter the URL in the given format: Payload URL: < instance_url>/api/webhook/v2/<orgname>/trigger-scm-push-request For example: If the instance is https://login.autorabit.com, then the payload URL would be: https://login.autorabit.com/autorabitrest/webhook/triggerSCMPushrequest.
Now fill in the details and click Add webhook.
Smart Commits
In this section, you can select the pattern used to read the comment in a revision associated with your ALM story. For example, 'git commit m [project123] # add README file into the project'.
If you want to configure a webhook in your repository, select the 'Enable auto update on webhook' checkbox to reveal the URL required for the webhook settings. For more information on how to configure a webhook in different repositories, refer HERE. You can also choose to sync external smart commits.
For Enterprise customers
/api/webhook/v2/<orgname>/enterprise
/trigger-scm-push-request
/api/webhook/v2/<orgname>/enterprise
/sync-alm-commits
Last updated