Skip to content

(AI) Update schema guidance for code review - #1715

Merged
Steve Lee (SteveL-MSFT) merged 1 commit into
PowerShell:mainfrom
michaeltlombardi:maint/main/update-schema-guidance-for-code-review
Sep 15, 2026
Merged

Steve Lee (SteveL-MSFT) merged 1 commit into
PowerShell:mainfrom
michaeltlombardi:maint/main/update-schema-guidance-for-code-review

Conversation

@michaeltlombardi

Copy link
Copy Markdown
Collaborator

PR Summary

This change extends the guidance for library and resources to clarify some best practices for defining types and JSON Schemas. The guidance centers on ensuring we correctly define resource schemas and follow best practices for types defined in the library crates that need to derive JsonSchema.

PR Context

Adding guidance to AI review to make common schema feedback built into the automated review cycle instead of relying on guidance from specific reviewers who may not review a PR or might forget one or more items in the guidance.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new guidance contains Markdown formatting and Rust attribute syntax issues that could mislead reviewers and break rendered instructions.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR extends the repository’s AI-assisted code review guidance for DSC libraries and resources, focusing on best practices around defining types that derive JsonSchema and authoring resource JSON Schemas/manifests.

Changes:

  • Added resource-schema guidance around canonical properties and readOnly/writeOnly usage.
  • Added library guidance for when to inline schemas vs. derive DscRepoSchema, and when to apply schema transforms for enums.
File summaries
File Description
.github/instructions/code-review/resource.instructions.md Adds resource manifest/schema review guidance (canonical properties, readOnly/writeOnly).
.github/instructions/code-review/library.instructions.md Adds library schema/type guidance (inlining, DscRepoSchema, enum transforms).
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/instructions/code-review/library.instructions.md Outdated
Comment thread .github/instructions/code-review/resource.instructions.md Outdated
Comment thread .github/instructions/code-review/resource.instructions.md Outdated
@michaeltlombardi
Mikey Lombardi (He/Him) (michaeltlombardi) force-pushed the maint/main/update-schema-guidance-for-code-review branch from 81fd674 to ca27cc9 Compare September 15, 2026 15:15
This change extends the guidance for library and resources to clarify
some best practices for defining types and JSON Schemas. The guidance
centers on ensuring we correctly define resource schemas and follow
best practices for types defined in the library crates that need to
derive `JsonSchema`.
@SteveL-MSFT
Steve Lee (SteveL-MSFT) added this pull request to the merge queue Sep 15, 2026
Merged via the queue into PowerShell:main with commit 8b9a681 Sep 15, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants