GitLab
GitLab 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 Incident Response.
How to integrate GitLab with Incident Response
In Incident Response: Using GitLab as an Alert Source
-
Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.
-
Select GitLab. Copy the displayed Webhook URL to configure it within GitLab. Finish by clicking Add Alert Source -> Done.
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.
In GitLab: Create a Incident Response Webhook
You can configure a Webhook for a group or a project.
-
In your project or group, on the left sidebar, select Settings > Webhooks
-
In the placeholder for URL, paste the previously copied Webhook from Incident Response
-
In the Trigger section, select the below events to trigger the Webhook. Then, select Add webhook
-
Issues -
Pushes -
Merge Requests -
Releases
This integration supports the below GitLab events:
-
Issues(Supports auto-resolution) -
Pushes -
Merge Requests(Supports auto-resolution) -
Releases
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 Incident Response. When an Issue or a Merge Request is closed/merged in GitLab, the corresponding incident in Incident Response will be automatically resolved. For Pushes and Releases, the associated incidents must be manually resolved in Incident Response.