# GitLab

[<mark style="color:blue;">GitLab</mark>](https://gitlab.com/) is a web-based DevOps lifecycle tool that provides a Git repository manager providing wiki, issue-tracking, and continuous integration and deployment pipeline features, using an open-source license, developed by GitLab Inc.

Route detailed events from GitLab to the right users in Squadcast.

### How to integrate GitLab with Squadcast

### In Squadcast: Using GitLab as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](/files/ej4AI9zpOyFu5NZJCbwC)

2\. Select **GitLab**. Copy the displayed **Webhook URL** to [configure](#in-gitlab-create-a-squadcast-webhook) it within **GitLab.** Finish by clicking **Add Alert Source** -> **Done**.

![](/files/awkmOTX1T1BiberBW2ig)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### In GitLab: Create a Squadcast Webhook

You can configure a Webhook for a group or a project.

**(1)** In your project or group, on the left sidebar, select **Settings > Webhooks**

![](/files/LC4xnCwtQ8MKtuuN1ZEG)

**(2)** In the placeholder for **URL**, paste the previously copied Webhook from Squadcast

![](/files/o3VmiQ1jkvTCxMsF8h4N)

**(3)** In the **Trigger** section, select the **below events** to trigger the Webhook. Then, select **Add webhook**

* `Issues`
* `Pushes`
* `Merge Requests`
* `Releases`

![](/files/kLf28XuWLMjAHaire2zy)

{% hint style="info" %}
**Note:**

This integration supports the below GitLab events:

* `Issues` (Supports auto-resolution)
* `Pushes`
* `Merge Requests` (Supports auto-resolution)
* `Releases`
  {% endhint %}

That is it, you are good to go!

Everytime an Issue, Push, Merge Request or a Release event occurs in GitLab, an incident would be created for it in Squadcast. When an Issue or a Merge Request is closed/merged in GitLab, the corresponding incident in Squadcast will be **automatically resolved**. For Pushes and Releases, the associated incidents must be manually resolved in Squadcast.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.incidents.cloud.solarwinds.com/integrations/alert-source-integrations-native/gitlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
