Notify Requesters When GitLab Issues Move Through the Development Pipeline
Objective
I use GitLab’s Customer Relationship Management (CRM) feature to track who requested each item. From there, I wanted a way for requesters to be automatically notified as their item moved through the development pipeline, from Backlog to In Progress, Testing/Review, and finally Done. GitLab supports webhooks that trigger on issue events such as creation, updates, closures, and openings. Using this capability, I built a PowerShell Azure function that receives the webhook payload, identifies when a status label changes, retrieves the CRM contact linked to the issue, and sends them an email notification.
Prerequisites
- Gitlab Account for an access token and to create the webhook
- Gitlab status as scoped Labels (ex: Status::In Progress)
- You can change the logic within the Azure Function but by default is will be looking for the status scoped label to determine old and current status of an item.
- Contacts filled out in Gitlab’s CRM (Plan