Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an environments list top-level CLI command to enumerate Rollbar environments (useful for discovering valid --environment filter values), with support in the Rollbar client, UI rendering, tests, and docs.
Changes:
- Introduces
rollbar-cli environments listwith text/JSON/NDJSON/raw-json output modes. - Adds Rollbar client support for listing environments across pages and normalizing the API response into a stable
Environmentshape. - Adds a text table renderer + tests, plus README and skill documentation updates.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
internal/ui/environments_table.go |
New text renderer for environments with field selection and headers. |
internal/ui/environments_table_test.go |
Tests for plain rendering and empty-state messaging. |
internal/rollbar/client.go |
Adds Environment types and ListEnvironments() implementation with normalization + pagination. |
internal/rollbar/client_test.go |
Tests ListEnvironments() pagination and result normalization (including fallback field names). |
cmd/environments.go |
New environments command group with list subcommand and output modes. |
cmd/environments_cmd_test.go |
CLI tests for JSON pagination and raw-json page aggregation behavior. |
cmd/root.go |
Wires the new environments command into the root command. |
README.md |
Documents the new environments functionality and examples. |
.ai/skills/rollbar-cli/SKILL.md |
Updates bundled skill docs to include the new command and workflow guidance. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
This PR expands the Rollbar CLI in two related areas that were missing from the existing surface.
First, it adds
rollbar-cli environments listso users can discover valid Rollbar environment names before applying--environmentfilters elsewhere in the CLI. The implementation adds environment support to the Rollbar client, follows environment pagination until Rollbar returns an empty page, preserves fetched raw pages for raw-json output, and exposes the results in text, JSON, NDJSON, and aggregated raw JSON forms.Second, it adds deploy support across all four Rollbar deploy endpoints. The CLI now supports
rollbar-cli deploys list,rollbar-cli deploys get,rollbar-cli deploys create, androllbar-cli deploys update, with the command flags narrowed to match the documented API contract. That includes paged deploy listing, deploy lookup by ID, deploy creation with the documented deploy metadata fields, and deploy status updates through the update endpoint.The PR also adds dedicated UI renderers and tests for the new resources, updates client normalization and request coverage, wires the new commands into the root command tree, and refreshes the README and bundled Rollbar skill documentation so agent workflows and manual usage examples stay aligned with the shipped CLI behavior.
Validation
Validated with
go test ./....