Configure a Webhook in GitLab
Last updated
Last updated
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.
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/api/webhook/v2/autorabit.com/trigger-scm-push-request
Now fill in the details and click Add webhook.
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.
/api/webhook/v2/<orgname>/enterprise
/trigger-scm-push-request
/api/webhook/v2/<orgname>/enterprise
/sync-alm-commits