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:
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:
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