Skip to main content

GitLab

Panto Installation on GitLab

1. Generate Access Token

You can generate an access token at the group level or project level. We recommend generating an access token at the group level to reuse the same token later.

  • Token Name: PANTO BOT
  • Scope: api
  • Expiration Date: Unselect (Set it to 12 months)
  • Role: Developer

After creating the access token, keep the token somewhere safe. GitLab will not show the token again once you leave the page. The token will look like glat-....

2. Setup Webhook

a. Go to project settings and click on the webhook.

b. In the webhook section, set the following parameters:

  • URL: https://app.pantomax.co/gitlab/webhook
  • Custom Header:
    • Key: X-PANTO-ACCESS-TOKEN
    • Value: The access token you just created (e.g., glpat-...)
  • Trigger: Comments and Merge request events

c. Save the changes.

Now the installation is completed for one project. Repeat the process for other projects. If you've created the access token at the group level, you can reuse the token for all projects under the same group.

You may go to any PR of the project and comment /review or !review to invite the bot to review the PR.