-
Notifications
You must be signed in to change notification settings - Fork 65.5k
Update events-that-trigger-workflows.md #650
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
Conversation
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
Thanks so much for opening a PR @cmcaine! I'll get this triaged for review 🌟 |
|
👋 @cmcaine Thanks a lot for this PR! You are correct that the description doesn't really match the example. However, I think we can change it so that the behavior is clearer, rather than switching the required values for the fields. I'll submit a new commit to your PR so it hopefully makes more sense! |
|
Ok, change made in 6bfe64d You can see a preview here: https://docs-650--patch-1.herokuapp.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#example-workflow-configuration @cmcaine: Let me know if this makes sense for you as well, and I'll merge it in 🙂 |
|
That looks like an improvement :) but line 114 setting the default name should maybe be removed if a name is required? Or maybe default & required is fine? |
Yep, default & required is fine 🙂. For the UI, this results in the field being pre-populated with the default value. e.g.: I'll get this merged in! |
|
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. |
|
But what is the difference between In both cases it is impossible to submit an empty string, because it will be replaced by the default, right? So what does On a field without a default, |
|
Co-authored-by: Jacob Prall <prall.jacob@gmail.com>

Why:
The wrong field is
requiredin theworkflow_dispatchevent example.The text says:
But
nameis required andlocationis not required and has no default.What:
Make
nameoptional andlocationrequired.Check off the following:
I have not done any of these, this is a trivial change and your CI should catch issues :)