Add inline examples to major workflow configuration fields #8141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Schema audit showed only 49% of root properties have examples. The 6 most critical fields (
on,engine,tools,steps,safe-outputs,mcp-servers) lacked examples, impacting IDE autocomplete and developer onboarding.Changes
Added
examplesarrays to priority fields inpkg/parser/schemas/main_workflow_schema.json:on(5 examples): Issues, pull requests, workflow_dispatch, scheduled triggers, slash commandsengine(5 examples): Simple strings ("copilot", "claude", "codex"), version overrides, model configuration with turn limitstools(4 examples): Playwright with version, GitHub (remote/local modes), bashsteps(enhanced to 3 examples): Prompt-only, mixed (actions + prompts), shell scriptssafe-outputs(3 examples): create-issue, create-pull-request with labels/prefixes, combined outputsmcp-servers(2 examples): stdio (filesystem), http (custom server)Example
IDEs with JSON Schema support now show inline examples for common patterns:
All examples validate against schema constraints and represent production usage patterns.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login k/gh-aw/gh-aw/.github/workflows rev-parse e/git-remote-https l --others ux-amd64/pkg/too. e/git-remote-htt-v om/h�� om/haskell-actions/setup.git rev-parse(http block)/usr/bin/gh gh api user --jq .login l/linux_amd64/li"mcp-server-play/run/containerd/io.containerd.runtime.v2.task/moby/98272d1741041git git ps tags/93cb6efe182git kiefer <8320933+rev-parse l/linux_amd64/as--show-toplevel ps -dot�� -dotnet.git -s -w -X main.version=843fb29 684444/b413/vet.cfg by/98272d1741041node ./cmd/gh-aw(http block)/usr/bin/gh gh api user --jq .login .git l/linux_amd64/cgo /usr/bin/git by/98272d1741041gh -test.v=true e/git-remote-httlist git rev-�� b/workflows e/git-remote-htt--others 0/x64/bin/npm l config /usr/bin/infocmpuser 0/x64/bin/npm(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.