feat:add new api for orion build#1205
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new Merge Request files-list API, supporting model and service logic, adds a Git tree endpoint, and includes a new GitHub Actions workflow for Orion server deployment.
- Adds
mr_files_listHTTP endpoint and modelMrFilesResfor listing MR diff files - Implements
MrDiffFileenum and service methods (mr_files_list,get_commit_blobs,traverse_tree) - Introduces
get_tree_fileroute and an Orion server deployment workflow
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| mono/src/api/mr/mr_router.rs | Registered and implemented new mr_files_list route |
| mono/src/api/mr/mod.rs | Added MrFilesRes struct and From<MrDiffFile> conversion |
| mono/src/api/api_router.rs | Added get_tree_file handler for repository tree listing |
| ceres/src/model/mr.rs | Defined MrDiffFile enum representing file diff types |
| ceres/src/model/mod.rs | Exposed the new mr module |
| ceres/src/api_service/mono_api_service.rs | Implemented service methods for computing MR diff and walking trees |
| .github/workflows/orion-server-deploy.yml | New GitHub Actions workflow for deploying the Orion server |
Comments suppressed due to low confidence (4)
.github/workflows/orion-server-deploy.yml:58
- The AWS region is set to
ap-southeast-2here but the credentials were configured withus-east-1. Align both regions to avoid deployment failures.
AWS_REGION: ap-southeast-2
mono/src/api/mr/mr_router.rs:265
- [nitpick] The new
mr_files_listendpoint lacks tests; consider adding unit or integration tests to verify its behavior.
async fn mr_files_list(
mono/src/api/mr/mod.rs:113
- The
ToSchemaderive is used but not imported; adduse utoipa::ToSchema;at the top of this file to resolve the missing trait.
#[derive(Serialize, ToSchema)]
ceres/src/api_service/mono_api_service.rs:433
- The code uses
HashSetbut there's nouse std::collections::HashSet;import; this will fail to compile. Please add the import.
let unions: HashSet<PathBuf> = old_files.keys().chain(new_files.keys()).cloned().collect();
genedna
approved these changes
Jul 8, 2025
yyk808
pushed a commit
to yyk808/mega
that referenced
this pull request
Jul 9, 2025
* feat: add orion-server deploy workflow * feat:add new api for orion build --------- Co-authored-by: Quanyi Ma <eli@patch.sh>
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.