-
Notifications
You must be signed in to change notification settings - Fork 819
Update package READMEs as part of the release process #1683
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
Merged
jeffhandley
merged 3 commits into
main
from
copilot/update-package-readmes-release-process
Jul 7, 2026
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
.github/skills/prepare-release/references/readme-content.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| # README Content Checklist | ||
|
|
||
| This reference describes what to review and update in the shared embedded NuGet README | ||
| (`src/PACKAGE.md`) and the root repository README (`README.md`) as part of every release. | ||
|
|
||
| ## The Shared Embedded README | ||
|
|
||
| All four SDK packages embed the **same** README file: `src/PACKAGE.md`. | ||
|
|
||
| Each project packs it identically: | ||
|
|
||
| ```xml | ||
| <None Include="..\PACKAGE.md" Pack="true" PackagePath="\README.md" /> | ||
| <PackageReadmeFile>README.md</PackageReadmeFile> | ||
| ``` | ||
|
|
||
| Updating `src/PACKAGE.md` updates every package's nuget.org README at once. | ||
| There are no per-package README files; `src/ModelContextProtocol.Core/README.md` and | ||
| similar paths do not exist. | ||
|
|
||
| ## Checklist | ||
|
|
||
| ### 1. Package-list closure | ||
|
|
||
| Every shipping SDK package must be listed in the packages section of `src/PACKAGE.md`, | ||
| including packages introduced after the initial SDK launch and including the package | ||
| being viewed in its own embedded README on nuget.org. | ||
|
|
||
| Current packages to list: | ||
| - `ModelContextProtocol.Core` | ||
| - `ModelContextProtocol` | ||
| - `ModelContextProtocol.AspNetCore` | ||
| - `ModelContextProtocol.Extensions.Apps` | ||
|
|
||
| Avoid counting phrases such as "three main packages" -- they become stale when packages | ||
| are added. Use a non-counting closure such as "The SDK packages are:" instead. | ||
|
|
||
| When a new package is introduced, add it to the list in both `src/PACKAGE.md` and the | ||
| root `README.md` (see section below). | ||
|
|
||
| ### 2. Badge strategy | ||
|
|
||
| Each package entry carries a nuget.org version badge. The correct badge endpoint depends | ||
| on the release type: | ||
|
|
||
| | Release type | Badge endpoint | Example | | ||
| |---|---|---| | ||
| | Prerelease series (e.g., `2.0.0-preview.*`) | `nuget/vpre/{package}` | `https://img.shields.io/nuget/vpre/ModelContextProtocol.svg` | | ||
| | Stable release | `nuget/v/{package}` | `https://img.shields.io/nuget/v/ModelContextProtocol.svg` | | ||
|
|
||
| `nuget/v` renders only the latest stable version and shows nothing (or a placeholder) | ||
| during a prerelease-only series. `nuget/vpre` renders the latest version including | ||
| prereleases. Switch all package badges together when the release type changes. | ||
|
|
||
| Verify every badge in `src/PACKAGE.md` uses the correct endpoint for this release. | ||
|
|
||
| ### 3. Release-notes link | ||
|
|
||
| `src/PACKAGE.md` must contain one statement linking to the release notes for the | ||
| current version: | ||
|
|
||
| ```markdown | ||
| See the [release notes](https://github.com/modelcontextprotocol/csharp-sdk/releases/tag/v{version}) | ||
| for what's new in this version. | ||
| ``` | ||
|
|
||
| Replace `{version}` with the exact version being released, including any prerelease | ||
| suffix (e.g., `2.0.0-preview.2`). | ||
|
|
||
| At prepare time the tag does not yet exist; the link is forward-referencing. The link | ||
| resolves once the GitHub release is published during the publish-release step. | ||
|
|
||
| Update this link for every release -- it must point to the tag being created, not a | ||
| prior release. | ||
|
|
||
| ### 4. Root README.md sync | ||
|
|
||
| The root `README.md` (the GitHub repo readme, NOT packed into packages) has its own | ||
| package-list section. Keep it aligned with `src/PACKAGE.md`: | ||
| - Same set of packages listed | ||
| - Same non-counting closure phrasing | ||
| - Badge strategy in `README.md` may also be updated for consistency, but the root | ||
| README is visible on GitHub (not nuget.org) so the badge choice is less critical | ||
|
|
||
| ## Salient content to review | ||
|
|
||
| Beyond the structural checks above, read the current `src/PACKAGE.md` for any content | ||
| that has become stale due to changes in this release: | ||
|
|
||
| - Package descriptions (are they still accurate?) | ||
| - Getting-started links (do they resolve and describe the current API?) | ||
| - Code samples, if any (do they compile against the current SDK? see | ||
| [readme-snippets.md](readme-snippets.md)) | ||
| - Any version-specific notes from a prior release that should be removed or updated | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.