Skip to content

mass bundle list#209

Merged
coryodaniel merged 3 commits intomainfrom
bundle-list
Feb 12, 2026
Merged

mass bundle list#209
coryodaniel merged 3 commits intomainfrom
bundle-list

Conversation

@coryodaniel
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 list CLI 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
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"`

Copilot uses AI. Check for mistakes.
@coryodaniel coryodaniel merged commit 450a129 into main Feb 12, 2026
3 of 4 checks passed
@coryodaniel coryodaniel deleted the bundle-list branch February 12, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants