MR Details
Fetch detailed information about a specific Merge Request (MR), including its metadata and conversations.
URL:
GET /api/v1/mr/${link}/detail
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 |
---|---|---|
id | integer | unique id |
link | string | The generated MR link |
title | string | The title of the MR |
status | string | The status of the MR |
open_timestamp | integer | The time the MR was opened |
merge_timestamp | optional integer | The time the MR was merged |
conversations | array | conversations array |
- Conversations Items
Field | Type | Description |
---|---|---|
id | integer | unique id |
user_id | integer | conversation user id |
conv_type | string | The status of the MR |
comment | string | Rich Text Editor comment |
created_at | integer | The time the conversation was created |
updated_at | integer | The time the conversation was updated |
Request Example:
POST /api/v1/mr/8WBZ4TVD/detail
Content-Type: application/json
Response Example::
{
"req_result": true,
"data": {
"id": 2478357753790725,
"link": "8WBZ4TVD",
"title": "iint ceres",
"status": "open",
"open_timestamp": 1733403354,
"merge_timestamp": null,
"conversations": [
{
"id": 2497916806775045,
"user_id": 2342220453167365,
"conv_type": "Comment",
"comment": "{\"root\":{\"children\":[{\"children\":[{\"detail\":0,\"format\":0,\"mode\":\"normal\",\"style\":\"\",\"text\":\"Test Comment\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"paragraph\",\"version\":1,\"textFormat\":0,\"textStyle\":\"\"}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}",
"created_at": 1734597144,
"updated_at": 1734597144
}
]
},
"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