I have another comment, though. If the field value isn't a known enumeration
value, the value 'unknown' is inserted in the enumeration array and made
the default value for display. But in my original code the insertion of
'unknown' only happened if it wasn't already there (the second grep operation
above). The reason is that 'unknown' may be a perfectly valid enumeration
value (and if it is already there, we don't want to insert it a second time).
E.g. I have the following entry in the responsible file:
unknown:The name is not in the responsible file - use "view" to see
it.:gnats-admin
If you edit a PR with an unknown responsible, the descriptive text is then
diplayed as a guide to the user.
Here is a suggestion for a modified foreach-loop: