Files Changed
Use Libra Commend to get mr's changed files.
URL:
GET /api/v1/mr/${link}/files-changed
Request Params:
| Field | Required | Type | Location | Description | 
|---|---|---|---|---|
| link | Y | string | Path | A unique identifier for the merge request to be merged | 
Response Params:
- Common
| Field | Type | Description | 
|---|---|---|
| content | string | libra diff string | 
| files | array | changed files list | 
- files list
| Field | Type | Description | 
|---|---|---|
| path | string | The generated MR link | 
| status | string | The status of changed file - "new": New added files. - "modified": Changed files. - "deleted": Removed files | 
Request Example:
GET /api/v1/mr/OTLRROOS/files-changed
Content-Type: application/json
Response Example::
{
    "req_result": true,
    "data": {
        "files": [
            {
                "path": "ceres/src/lfs/lfs_structs.rs",
                "status": "new"
            },
        ],
        "content": "diff --git a/ceres/src/lfs/lfs_structs.rs b/ceres/src/lfs/lfs_structs.rs\nnew file mode 100644\nindex 0000000..4618dc34\n@@ -1,0 +1,205 @@\n+use serde::{Deserialize, Serialize};\n+use std::collections::HashMap;\n+use std::path::PathBuf;\n"
    },
    "err_message": ""
}
Fetch Merge Request List
Fetch a paginated list of Merge Requests (MRs) based on their status. This API allows filtering of MRs by their status (open, closed, or all) and supports pagination.
Merge MR
Allows a user to merge a specific Merge Request (MR) if they have the necessary permissions and if the MR is in an open state
Close MR
Close a Merge Request (MR) if it is in an open state
Reopen MR
Open a Merge Request (MR) if it is in an Close state
Files Changed
Use Libra Commend to get mr's changed files.
MR Details
Fetch detailed information about a specific Merge Request (MR), including its metadata and conversations.
Comment
Add a comment to MR
Delete Comment
Delete a comment from MR