ministryofjustice / cloud-platform

Documentation on the MoJ cloud platform
MIT License
87 stars 44 forks source link

Automate Slack alert support requests #6303

Open jackstockley89 opened 1 hour ago

jackstockley89 commented 1 hour ago

Background

Users raise tickets for the cloud platform team to create a slack alert which sits in the Infra repository

Proposed user journey

The user raise a support ticket in our cloud-platform repository, this should contain the relevant data needed for the cloud-platform team member to create the alert and the contact for the use to message once completed

Approach

create a concourse job that will be triggered on the creation of these tickets, process the data and create/approve the pull request

Which part of the user docs does this impact

Should create a new issues template to give the user more detail on this:

Definition of done

Reference

How to write good user stories

jaskaransarkaria commented 1 hour ago

if details are missing write a comment on the issue and move on

jaskaransarkaria commented 1 hour ago

maybe run as a nightly job that lookups the issues pulls out all the info and creates a webhook obj in the tfvars file, using sed then git commit, push and create a pr.

(not sure how easy it would be to auto-merge that but that's the end goal). If auto-merge isn't possible then post the pr into one of our channels and add the pr as a comment in the issue.

Should be possible to do all this in bash in the concourse job but will require a few test run throughs