Add NuGet package staging CLI proposal - #15048
Draft
Nigusu-Allehu wants to merge 2 commits into
Draft
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 44164f80-2440-484e-8b53-a260a6430ac8
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an accepted-spec proposal for a new dotnet nuget stage command family, along with a versioned set of JSON Schemas defining the machine-readable (--format json) CLI output contract.
Changes:
- Introduces v1 JSON Schema “envelope” and per-command result schemas for
stageandstage groupcommands. - Documents versioning and schema index for the staging CLI JSON contract.
- Adds the full design proposal document describing command surface area, protocol discovery, and output rules.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| accepted/2026/nuget-package-staging-cli/schemas/v1/envelope.schema.json | Defines the shared v1 output envelope (version/command/result/problems). |
| accepted/2026/nuget-package-staging-cli/schemas/v1/push.schema.json | Schema for stage push JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/list.schema.json | Schema for stage list JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/view.schema.json | Schema for stage view JSON output result across lifecycle states. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/delete.schema.json | Schema for stage delete JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/group-create.schema.json | Schema for stage group create JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/group-list.schema.json | Schema for stage group list JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/group-add.schema.json | Schema for stage group add JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/group-remove.schema.json | Schema for stage group remove JSON output result. |
| accepted/2026/nuget-package-staging-cli/schemas/v1/group-delete.schema.json | Schema for stage group delete JSON output result. |
| accepted/2026/nuget-package-staging-cli/README.md | Explains scope/versioning and provides a schema index. |
| accepted/2026/nuget-package-staging-cli.md | Full accepted proposal detailing commands, protocol mapping, and output contract. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - HTTP request or response bodies exchanged by the NuGet client and server. | ||
| - The staging server's OpenAPI contract. | ||
| - Server persistence models. | ||
| - Server-only validation states or error details. |
Comment on lines
+46
to
+59
| { | ||
| "type": "object", | ||
| "required": ["status", "created", "errors", "snupkg"], | ||
| "properties": { | ||
| "status": { "const": "failed" }, | ||
| "created": { "type": "string", "format": "date-time" }, | ||
| "errors": { "type": "array" }, | ||
| "snupkg": { | ||
| "type": ["string", "null"], | ||
| "enum": ["validating", "staged", "failed", null] | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| } |
Comment on lines
+24
to
+27
| "snupkg": { | ||
| "type": ["string", "null"], | ||
| "enum": ["validating", "staged", "failed", null] | ||
| } |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://github.com/NuGet/Home/blob/dev-nyenework-stage-cli/accepted/2026/nuget-package-staging-cli.md