You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found an example of this in the wild, however, internally, you may want to use kebab case and pass that input to an upstream action that uses camel case so you may be left with an input like comment-filePath. We wrap multiple upstream actions in private actions which is why comment would need to be prefixed to differentiate the input from other upstream actions used.
Since there is no official style guide and actionlint doesn't enforce code styles, I feel that enforcing specific style on inputs/outputs is out of scope of actionlint.
However, it would be nice idea to use consistent naming convention not to confuse people on action's and reusable workflow's inputs/outputs usage 👍. I'll consider to add a check for names are consistent.
context
It would be nice to have consistent action inputs so this is more predictable.
Perhaps the default opinion can be kebab case and be configurable?
options
kebab
caseOfficial github actions seem to use kebab case
token
as an input instead ofGITHUB_TOKEN
or evengithub-token
snake
casecamel
caseupperkebab
I haven't found an example of this
uppersnake
mixed
(basically no standard)I haven't found an example of this in the wild, however, internally, you may want to use kebab case and pass that input to an upstream action that uses camel case so you may be left with an input like
comment-filePath
. We wrap multiple upstream actions in private actions which is whycomment
would need to be prefixed to differentiate the input from other upstream actions used.references
The text was updated successfully, but these errors were encountered: