feat[UI]: update generated.ts#1336
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates the generated TypeScript types to support pagination for merge request file changes. It introduces a new POST endpoint for paginated file change retrieval alongside the existing GET endpoint.
Key changes:
- Adds pagination support for merge request file changes with new types and endpoint
- Refactors content field from string to DiffItem array for better type safety
- Updates API documentation to clarify endpoint purposes
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| moon/packages/types/generated.ts | Adds new pagination types, refactors content structure, and implements POST endpoint for paginated file changes |
| mono/src/api/mr/mr_router.rs | Updates request body type from PageParams to PageParams |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| export type CommonResultFilesChangedList = { | ||
| data?: { | ||
| content: string | ||
| content: DiffItem[] |
There was a problem hiding this comment.
This breaking change modifies the content field from string to DiffItem[] without maintaining backward compatibility. Consider implementing a versioned API or providing migration guidance for existing consumers.
| content: DiffItem[] | |
| content: string | DiffItem[] |
|
|
||
| export type FilesChangedList = { | ||
| content: string | ||
| content: DiffItem[] |
There was a problem hiding this comment.
Similar to the CommonResultFilesChangedList type, this breaking change to the content field could impact existing API consumers. Ensure proper migration strategy is in place.
|
需要UI 侧进行修改,先合并 |
No description provided.