Skip to content

[Nitro CLI] Use Client.publishedVersions to power client list published-versions command - #9861

Merged
tobias-tengler merged 2 commits into
mainfrom
tte/update-client-published-versions-command
Jun 6, 2026
Merged

tobias-tengler merged 2 commits into
mainfrom
tte/update-client-published-versions-command

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 6, 2026 14:20
@tobias-tengler tobias-tengler changed the title [Nitro CLI] Use Client.publishedVersions to power client list published-versions command [Nitro CLI] Use Client.publishedVersions to power client list published-versions command Jun 6, 2026
@github-actions github-actions Bot added the 📚 documentation This issue is about working on our documentation. label Jun 6, 2026

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.

Pull request overview

Updates the Nitro CLI and client to list a client’s published versions via the new Client.publishedVersions GraphQL field, aligning the CLI command with a dedicated backend API instead of deriving published versions from the full versions list.

Changes:

  • Add Client.publishedVersions(stage: ...) support to the Nitro GraphQL client (operation + client interface/implementation).
  • Update nitro client list published-versions to require --stage and to display publishedAt instead of createdAt/stages.
  • Refresh the embedded GraphQL schema and persisted operations to include the new fields/types.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Nitro/Common/src/ChilliCream.Nitro.Client/schema.graphql Schema refresh to include Client.publishedVersions and related types/fields.
src/Nitro/Common/src/ChilliCream.Nitro.Client/persisted/operations.json Adds persisted query entry for listing published client versions.
src/Nitro/Common/src/ChilliCream.Nitro.Client/Clients/Operations/ListClientPublishedVersionsCommand.graphql New GraphQL operation + fragment used by the client/CLI.
src/Nitro/Common/src/ChilliCream.Nitro.Client/Clients/IClientsClient.cs Adds ListClientPublishedVersionsAsync API to the client interface.
src/Nitro/Common/src/ChilliCream.Nitro.Client/Clients/ClientsClient.cs Implements ListClientPublishedVersionsAsync using the generated operation.
src/Nitro/CommandLine/src/CommandLine/Commands/Clients/ListClientPublishedVersionsCommand.cs CLI command now requires --stage and renders publishedAt.
src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ListClientPublishedVersionsCommandTests.cs Updates/extends tests for --stage and new output shape.
src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ClientsCommandTestBase.cs Adds new mock helpers for published-versions queries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Nitro/Common/src/ChilliCream.Nitro.Client/schema.graphql
@tobias-tengler
tobias-tengler merged commit 252d119 into main Jun 6, 2026
278 of 282 checks passed
@tobias-tengler
tobias-tengler deleted the tte/update-client-published-versions-command branch June 6, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation This issue is about working on our documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants