Skip to content

Add README code sample validation step to release-notes skill#1371

Merged
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
jeffhandley:jeffhandley/release-readme-snippets
Feb 24, 2026
Merged

Add README code sample validation step to release-notes skill#1371
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
jeffhandley:jeffhandley/release-readme-snippets

Conversation

@jeffhandley
Copy link
Collaborator

Add Step 4 to validate that C# code samples in package README files compile against the current SDK. Includes a reference document with the test project approach, snippet extraction rules, and failure classification guidance. Steps 5-10 renumbered accordingly.

Add Step 4 to validate that C# code samples in package README files
compile against the current SDK. Includes a reference document with
the test project approach, snippet extraction rules, and failure
classification guidance. Steps 5-10 renumbered accordingly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
stephentoub
stephentoub previously approved these changes Feb 24, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new validation step (Step 4) to the release-notes skill that verifies C# code samples in package README files compile against the current SDK before releasing. The change ensures documentation accuracy by creating a temporary test project that wraps README snippets with fixups for incomplete code (like ... placeholders), building them, and reporting any API mismatches as documentation bugs.

Changes:

  • Added comprehensive reference document describing README code sample validation procedure
  • Inserted new Step 4 into the release workflow to validate README snippets
  • Renumbered all subsequent steps (5-10) to accommodate the new validation step

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/skills/release-notes/references/readme-snippets.md New reference document providing detailed instructions for extracting, wrapping, and validating C# code snippets from package READMEs
.github/skills/release-notes/SKILL.md Added Step 4 for README validation and renumbered subsequent steps from 5-10

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jeffhandley jeffhandley marked this pull request as ready for review February 24, 2026 04:15
@stephentoub stephentoub merged commit 0e23854 into modelcontextprotocol:main Feb 24, 2026
1 check 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