Change 'files' parameter to only be required when command is publish#103
Conversation
|
Diff Coverage: The code coverage on the diff in this pull request is 80.0%. Total Coverage: This PR will decrease coverage by 0.34%. File Coverage Changes
🛟 Help
|
|
@noah shouldn't https://github.com/qltysh/qlty-action/blob/main/coverage/action.yml#L28 be changed as well? |
|
@marschattha Looks like you're right. We changed the code to require a parameter in the code, but still require it in the action definition. Wonder why it hasn't come up before for us? |
Previously we only supported a single command (publish) which requires a files parameter. We now support 2 commands: publish and complete. "files" is an invalid parameter when the command is complete.
This makes 'files' an optional action parameter which then requires our code to provide its own validation of the files parameter based on the command.