GeezerVison is showing github.com — feat(stage): display staged package status by joelverhagen · Pull Request #9898 · npm/cli
Conversation
What / Why
The stage API can return a lifecycle status for staged package versions. Display that status in human-readable output for both npm stage list and npm stage view so users can tell whether staged versions are still validating or ready for review.
Status values are treated as opaque server-provided values, so future statuses are displayed without requiring a CLI update. JSON output continues to preserve the returned status unchanged.
Screenshots
nom stage list showing one staged and one validating. The status values are originated from the package feed. staged is the current default status, meaning it is ready for approval. validating means it's undergoing automated checks and can't be approved yet. The lifecycle and requirements for approval are managed solely by the registry. The CLI just surfaces as status value is present in the response.
The status also shows on the nom stage view command.
Testing
npx tap --no-coverage test/lib/utils/key-values.js test/lib/commands/stage/list.js test/lib/commands/stage/view.js
npm run lint -- --quiet
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: e928b867-eb5b-4dff-a0ec-0fdcbe278846
Uh oh!
There was an error while loading. Please reload this page.
|
🎉 Backport to release/v11 created: #9920
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
reggi
reggi approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.