Merged
Conversation
chrisghill
approved these changes
Feb 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new mass bundle list command to list bundle repositories (also called "repos" in the API) within an organization. The implementation includes full GraphQL query support with pagination, sorting, and search capabilities, while also cleaning up deprecated template-related functionality.
Changes:
- Adds new
mass bundle listCLI command with search, sort, and output format options - Implements API wrapper for listing bundle repositories with pagination support
- Removes deprecated template-related GraphQL queries and types from schema
- Adds custom Cursor scalar type for pagination
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/api/zz_generated.go | Generated code for new GraphQL query, enum helpers, and refactored function signatures |
| pkg/api/schema.graphql | Removed deprecated template queries/types, documents repos query |
| pkg/api/scalars/cursor.go | New Cursor type for pagination with omitempty tags |
| pkg/api/repo_test.go | Comprehensive tests for ListRepos with and without options |
| pkg/api/repo.go | API wrapper implementing ListRepos with options mapping and response transformation |
| cmd/bundle.go | New CLI command with flags for search, sort, limit, and output format |
| pkg/api/genqlient.yaml | Added Cursor scalar binding |
| pkg/api/genqlient.graphql | Added listRepos query with pagination, sort, and search |
| go.mod | Promoted go-runewidth to direct dependency |
| pkg/api/main.go | Simplified generate directive to use local genqlient |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pkg/api/repo.go
Outdated
Comment on lines
13
to
29
| ID string | ||
| Name string | ||
| CreatedAt time.Time | ||
| ReleaseChannels []ReleaseChannel | ||
| } | ||
|
|
||
| // ReleaseChannel represents a release channel | ||
| type ReleaseChannel struct { | ||
| Name string | ||
| Tag string | ||
| } | ||
|
|
||
| // ReposPage represents a page of repos with pagination info | ||
| type ReposPage struct { | ||
| Items []Repo | ||
| NextCursor string | ||
| PrevCursor string |
There was a problem hiding this comment.
The ReposPage struct fields should have JSON tags for consistency with other API types and to ensure proper JSON marshaling when using the json output format in the CLI.
Suggested change
| ID string | |
| Name string | |
| CreatedAt time.Time | |
| ReleaseChannels []ReleaseChannel | |
| } | |
| // ReleaseChannel represents a release channel | |
| type ReleaseChannel struct { | |
| Name string | |
| Tag string | |
| } | |
| // ReposPage represents a page of repos with pagination info | |
| type ReposPage struct { | |
| Items []Repo | |
| NextCursor string | |
| PrevCursor string | |
| ID string `json:"id"` | |
| Name string `json:"name"` | |
| CreatedAt time.Time `json:"created_at"` | |
| ReleaseChannels []ReleaseChannel `json:"release_channels"` | |
| } | |
| // ReleaseChannel represents a release channel | |
| type ReleaseChannel struct { | |
| Name string `json:"name"` | |
| Tag string `json:"tag"` | |
| } | |
| // ReposPage represents a page of repos with pagination info | |
| type ReposPage struct { | |
| Items []Repo `json:"items"` | |
| NextCursor string `json:"next_cursor"` | |
| PrevCursor string `json:"prev_cursor"` |
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.
No description provided.