ministryofjustice / cloud-platform

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

Github Action: When a user creates a new namespace, ensure they have entered valid details #5388

Open jaskaransarkaria opened 8 months ago

jaskaransarkaria commented 8 months ago

Background

When a user raises a PR for a new namespace in the cloud-platform-environments repo, we require the user to enter some details under annotations which we use to contact the user in the event of an issue. Currently, we have no check on these values, so a user may enter values which are not accurate.

Create a github action to lookup the value and ensure it is a valid entry for the following annotations:

cloud-platform.justice.gov.uk/source-code
cloud-platform.justice.gov.uk/team-name

Approach

If either of the annotations do not meet the criteria then fail the action with a useful error message.

Consider how we should manage namespaces that exist already but contain invalid values for these annotations.

Definition of done

Reference

How to write good user stories

FolarinOyenuga commented 7 months ago

To be updated https://github.com/ministryofjustice/cloud-platform-environments/pull/21988

FolarinOyenuga commented 4 months ago

Testing the program to see how it works. Also some learning to being done for better understanding and implementation.