Merged
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds a suite of new v1 API endpoints for the console, introducing list and detail operations for users, repos, pull requests, builds, deploys, deployables, and deploy summaries with filtering and pagination.
- Implements
GET /api/v1/users,/repos,/pull-requests,/builds,/deploys,/deployables, and/deploy-summaryendpoints. - Supports optional filtering (e.g., by user, repo, status) and pagination across multiple routes.
- Adds detailed single-resource lookups (
/pull-requests/{id},/builds/{uuid}) and nested resources (builds and deploys under a pull request).
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/api/v1/users/index.ts | New endpoint to list distinct GitHub users |
| src/pages/api/v1/repos/index.ts | New endpoint to list distinct repository names |
| src/pages/api/v1/pull-requests/index.ts | New endpoint to list pull requests with filters |
| src/pages/api/v1/pull-requests/[id]/index.ts | Detail endpoint to fetch a pull request by ID |
| src/pages/api/v1/pull-requests/[id]/builds.ts | Nested endpoint to list builds for a pull request |
| src/pages/api/v1/deploys.ts | Endpoint to list deploys by build ID |
| src/pages/api/v1/deployables.ts | Endpoint to list deployables by build ID |
| src/pages/api/v1/deploy-summary.ts | Endpoint to query the deploySummary view |
| src/pages/api/v1/builds/index.ts | Endpoint to list builds with status exclusion |
| src/pages/api/v1/builds/[uuid]/index.ts | Detail endpoint to fetch a build by UUID |
Comments suppressed due to low confidence (1)
src/pages/api/v1/deploy-summary.ts:141
- The field name "deployableID" is inconsistent with the camelCase convention used elsewhere (e.g., pullRequestId). Rename to "deployableId" for consistency.
"deployableID",
vmelikyan
approved these changes
Jul 10, 2025
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.
What
PS: some api's follow non standard patterns to adopt with existing console ui, will refine as we develop the new console