Configure a Webhook in GitLab

A. Create a Webhook API token from ARM

  1. Log in to ARM.

  2. Click on Admin -> API Token.

  3. Click on 'Create API Token.'

  1. Enter the token name.

  2. Select Type as “webhook.”

  3. Enter a Description if required.

  4. Click on 'Create Option.'

  1. Your new API token is created.


B. Create a Webhook with Authentication on GitLab

  1. Log in to your GitLab account and select a Repository in which you want to configure a Webhook.

  1. Navigate to Settings > Integrations.

  1. 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.

  1. 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