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.
URL:
POST /api/v1/mr/list
Request Params:
- Request Params
Field | Required | Type | Location | Description |
---|---|---|---|---|
pagination | Y | Pagination Object | Body | |
additional | Y | Pagination Additional Object | Body |
- Pagination Object
Field | Required | Type | Description |
---|---|---|---|
page | Y | integer | The page number for pagination |
per_page | Y | integer | The number of results per page |
- Pagination Additional Object
Field | Required | Type | Description |
---|---|---|---|
status | N | string | The status filter - "open": Fetch only open merge requests. - "closed": Fetch closed and merged merge requests. - leave empty: Fetch merge requests with all statuses |
Response Params:
- Common
Field | Type | Description |
---|---|---|
total | integer | total number of page |
items | array | merge request list |
- MR Items
Field | Type | Description |
---|---|---|
link | string | The generated MR link |
title | string | The title of the MR |
status | string | The status of the MR |
open_timestamp | optional integer | The time the MR was opened |
merge_timestamp | integer | The time the MR was merged |
updated_at | integer | The time the MR was last updated |
Request Example:
{
"pagination": {
"page": 1, // The page number to fetch.
"per_page": 10 // The number of items per page.
},
"additional": {
"status": "open" // The status filter: "open", "closed", or leave empty for all status.
}
}
Response Example::
{
"req_result": true,
"data": {
"total": 1,
"items": [
{
"link": "8WBZ4TVD",
"title": "init code",
"status": "open",
"open_timestamp": 1733403354,
"merge_timestamp": null,
"updated_at": 1733403354
}
]
},
"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