Replies: 1 comment 7 replies
-
This is very useful feedback @philomory. I appreciate it. This request makes a lot of sense and I'll pass this along to the team. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using a
workflow_dispatch
workflow, with aninput
of typechoice
, the browser UI for invoking the workflow constructs a drop-down menu containing the specifiedoptions
. It'd be nice if we could (optionally) allow specifying the display text of each option separately from the value of that option, in much the same way that an HTML<select>
element can look like this:A potential syntax for this in the workflow yaml would be like this:
the
on.workflow_dispatch.inputs.*.options
element would take anArray[String|Map]
, with a string value offoo
treated as equivalent to{value: 'foo', text: 'foo'}
for compatibility.The advantage of this setup is that it would allow workflow developers the opportunity to provide more meaningful option descriptions, while not requiring them to have their workflow code check e.g.
if: github.events.inputs.foo == 'A choice only for unusual circumstances'
(as is presently required if you want descriptive text in your drop-down menu). This would be particularly helpful because it would avoid the chance of tweaks to the descriptive text rendering the workflow inoperable.Beta Was this translation helpful? Give feedback.
All reactions