-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation should be updated to not to say all arguments are optional #414
Comments
It is optional from the POV of the action options. IMO it's old and was not challenged since quite some time between the fixes and the new features - or they is a hidden reason I am not aware of. |
Oh I see what you're saying. It has many features, which is why nothing works out of the box until you opt in. I think that's fine, and we just need some more docs for use cases. Like sample YAML if someone just wants stale issues to be labelled and closed. |
IMO blocked by #399 |
@luketomlinson @hross once #456 landed to improve the documentation and #457 which create a breaking change, it would be a good time to improve the default options to have only one breaking change. WDYT? |
I can provide a small PR to handle this |
I added this action to a repo I maintain (https://github.com/schema-inspector/schema-inspector), using the following:
I chose not to set any arguments because the readme for the action states:
I figured this meant that there would be a default value for the message to use when it detects a stale issue etc and does its thing, and that I could just add an argument later if I wanted to override this default message.
Instead, when it ran overnight, I saw this in the action logs:
It looks like it's detecting an issue as old (like the one last updated 2016-11-27T10:08:17Z) but choosing not to do anything for that issue.
I checked the readme for this action again and found that the arguments that had to do with the message to be used didn't have defaults, so I think they actually aren't optional. But it isn't clear, since the top of the readme currently says all arguments are optional.
I think the readme should be updated to clearly show which are optional and which aren't.
The text was updated successfully, but these errors were encountered: