Conversation
- Document all supported runtimes with default versions - Include configuration fields (version, action-repo, action-version) - Add usage examples for common scenarios - Document default behavior and use cases - Update frontmatter elements list to include runtimes Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Documents the previously-undocumented runtimes: frontmatter field so users can discover and configure runtime version/setup-action overrides without reading schemas/implementation.
Changes:
- Adds a new
runtimes:reference section with supported runtimes, defaults, fields, and examples. - Updates the “Frontmatter Elements” list to include
pluginsandruntimes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - `version`: Runtime version string (required) | ||
| - `action-repo`: Custom GitHub Actions setup action (optional, overrides default) | ||
| - `action-version`: Version of the setup action (optional, overrides default) |
There was a problem hiding this comment.
version is documented as required, but the schema and implementation treat it as optional (omitting it uses the runtime’s default version). This also allows specifying only action-repo/action-version without a version override. Please update the field description to reflect that version is optional and defaults apply when omitted.
| - `version`: Runtime version string (required) | |
| - `action-repo`: Custom GitHub Actions setup action (optional, overrides default) | |
| - `action-version`: Version of the setup action (optional, overrides default) | |
| - `version`: Runtime version string (optional; if omitted, the runtime's default version is used) | |
| - `action-repo`: Custom GitHub Actions setup action (optional, overrides default even without a `version` override) | |
| - `action-version`: Version of the setup action (optional, overrides default even without a `version` override) |
| version: "1.22" | ||
| ``` | ||
|
|
||
| **Default Behavior**: If not specified, workflows use default runtime versions as defined in the system. The compiler automatically detects which runtimes are needed based on tool configurations (e.g., `bash: ["node"]`, `bash: ["python"]`) and workflow steps. |
There was a problem hiding this comment.
The runtime auto-detection example here references bash: ["node"] / bash: ["python"], but runtime detection doesn’t inspect tools.bash allowlists; it detects runtimes from run: commands (custom steps / engine steps) and from certain MCP tool configs (e.g., a non-containerized MCP server command) and Serena local mode. Please replace the example with something that matches the actual detection behavior (e.g., run: npm install / run: python script.py, or a custom MCP tool command: node).
| **Default Behavior**: If not specified, workflows use default runtime versions as defined in the system. The compiler automatically detects which runtimes are needed based on tool configurations (e.g., `bash: ["node"]`, `bash: ["python"]`) and workflow steps. | |
| **Default Behavior**: If not specified, workflows use default runtime versions as defined in the system. The compiler automatically detects which runtimes are needed based on tool configurations and workflow steps (e.g., `run: npm install`, `run: python script.py`, or an MCP tool `command: node`). |
The
runtimes:frontmatter field exists in schema and implementation but was undocumented, forcing users to read JSON schemas to discover runtime version overrides.Changes
Added runtimes documentation section to
docs/src/content/docs/reference/frontmatter.mdversion,action-repo,action-versionUpdated frontmatter elements list to include
runtimesfieldExample
Users can now discover and configure runtime versions without consulting schemas or implementation code.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.