Запросы на слияние
Описание структуры JSON-объекта, описывающего запрос на слияние
Поле | Тип | Описание |
---|---|---|
id |
String | Уникальный ID запроса на слияние |
localId |
Long | Локальный ID запроса на слияние |
description |
String | Описание запроса на слияние |
title |
String | Название запроса на слияние |
removeSourceBranch |
Boolean | Удалить исходную ветку, после того как запрос на слияние будет принят |
squashCommit |
Boolean | Выполнить слияние одним коммитом |
assignedUsers |
List | Список отвественных пользователей, назначенных на запрос на слияние |
reviewers |
List | Список рецензентов пользователей, назначенных на запрос на слияние |
labels |
List | Список лейблов, назначенных на запрос на слияние |
sourceBranch |
Object | Ветка, из которой будет выполнен запрос на слияние |
targetBranch |
Object | Ветка, в которую будет выполнен запрос на слияние |
status |
Object | Статус запроса на слияние |
createdBy |
Object | Автор запроса на слияние |
createdAt |
ZonedDateTime | Дата создания запроса на слияние |
updatedAt |
ZonedDateTime | Дата последнего изменения запроса на слияние |
sourceProject |
Object | Проект, из которого выполняется запрос на слияние |
targetProject |
Object | Проект, для которого выполняется запрос на слияние |
projectAlias |
String | Псевдоним проекта |
userAlias |
String | Псевдоним автора |
canMerge |
Boolean | Статус, отвечающий за то может ли ветка быть слита |
hasConflicts |
Boolean | Статус, отвечающий за то имеются ли кофликты у запроса на слияние |
Метод получения списка всех запросов на слияние
GET /project/{userAlias}/{projectAlias}/merge-request/list
Запрос возвращает массив запросов на слияние, есть возможность настройки количества отображаемых объектов на странице
Запрос | Описание |
---|---|
GET /project/{userAlias}/{projectAlias}/merge-request/list |
Список запросов на слияние |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
Responses
STATUS 200
пример JSON:
{
"_embedded": {
"mergeRequestModelList": [
{
"id": "767e5a4a-3b02-4a26-a9c5-f4d1fb6b5490",
"localId": 3,
"description": "test3",
"title": "test3-description",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [
{
"id": "bc56d75f-816c-4009-be68-61ec6aae2019",
"username": "user",
"name": null,
"surname": null,
"fullName": "user",
"avatar": "https://gitflic.ru/upload/img/43258295-494a-4740-b195-8fc26bae3717.jpg"
}
],
"reviewers": [
{
"id": "bc56d75f-816c-4009-be68-61ec6aae2019",
"username": "user",
"name": null,
"surname": null,
"fullName": "user",
"avatar": "https://gitflic.ru/upload/img/43258295-494a-4740-b195-8fc26bae3717.jpg"
}
],
"labels": [
{
"id": "c9135ea3-61aa-4a00-ace5-1ec3c61a5b6d",
"hexColor": "FCF300",
"title": "релиз",
"description": "Доработки готовые для релиза",
"isTextLight": false
}
],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "OPENED",
"title": "В работе",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T16:25:53.830856Z",
"updatedAt": "2022-05-03T16:25:53.830856Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": true,
"hasConflicts": false
},
{
"id": "b9c534c9-0d60-4047-9198-754e11af2eb0",
"localId": 2,
"description": "test2-desc",
"title": "test2",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "OPENED",
"title": "В работе",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-04-20T14:08:10.381743Z",
"updatedAt": "2022-04-20T14:08:10.384743Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": false,
"hasConflicts": false
},
{
"id": "a306ecf4-33d2-4ee2-a4aa-25b206b7e8b7",
"localId": 1,
"description": "test2-new",
"title": "test2-new",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "CANCELED",
"title": "Отменен",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-04-20T13:56:00.250341Z",
"updatedAt": "2022-04-20T14:13:37.491826Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": false,
"hasConflicts": false
}
]
},
"page": {
"size": 10,
"totalElements": 3,
"totalPages": 1,
"number": 0
}
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.
Метод получения информации о запросе на слияние по локальному id
GET /project/{userAlias}/{projectAlias}/merge-request/{localId}
Запрос возвращает запрос на слияние по его локальному ID
Запрос | Описание |
---|---|
GET /project/{userAlias}/{projectAlias}/merge-request/{localId} |
Запрос на слияние по его локальному ID |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
localId |
Long | Локальный ID запроса на слияние |
Responses
STATUS 200
Пример JSON:
{
"id": "767e5a4a-3b02-4a26-a9c5-f4d1fb6b5490",
"localId": 3,
"description": "test3",
"title": "test3",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [
{
"id": "bc56d75f-816c-4009-be68-61ec6aae2019",
"username": "user",
"name": null,
"surname": null,
"fullName": "user",
"avatar": "https://gitflic.ru/upload/img/43258295-494a-4740-b195-8fc26bae3717.jpg"
}
],
"reviewers": [
{
"id": "bc56d75f-816c-4009-be68-61ec6aae2019",
"username": "user",
"name": null,
"surname": null,
"fullName": "user",
"avatar": "https://gitflic.ru/upload/img/43258295-494a-4740-b195-8fc26bae3717.jpg"
}
],
"labels": [
{
"id": "c9135ea3-61aa-4a00-ace5-1ec3c61a5b6d",
"hexColor": "FCF300",
"title": "релиз",
"description": "Доработки готовые для релиза",
"isTextLight": false
}
],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "OPENED",
"title": "В работе",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T16:25:53.830856Z",
"updatedAt": "2022-05-03T16:25:53.830856Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": true,
"hasConflicts": false
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.
Метод для создания нового запроса на слияние
POST /project/{userAlias}/{projectAlias}/merge-request
Запрос создает запрос на слияние
Запрос | Описание |
---|---|
POST /project/{userAlias}/{projectAlias}/merge-request |
Создает запрос на слияние |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
Пример JSON объекта
{
"description": "test4",
"title": "test4",
"sourceBranch": { "id": "new_branch" },
"targetBranch": { "id": "master" },
"sourceProject": { "id": "4eeae220-270f-461b-92b1-85ff50ee88c1" },
"targetProject": { "id": "4eeae220-270f-461b-92b1-85ff50ee88c1" }
}
Responses
STATUS 200
пример JSON:
{
"id": "5f20bdae-fdbc-4e65-bed5-1977fbe213f9",
"localId": 4,
"description": "test4",
"title": "test4",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "OPENED",
"title": "В работе",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T19:16:05.724983Z",
"updatedAt": "2022-05-03T19:16:05.724983Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": true,
"hasConflicts": false
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.
Метод для редактирования запроса на слияние
PUT /project/{userAlias}/{projectAlias}/merge-request
Запрос изменяет запрос на слияние
Запрос | Описание |
---|---|
PUT /project/{userAlias}/{projectAlias}/merge-request |
Изменить запрос на слияние |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
Пример JSON объекта
{
"id": "65398dd5-de8e-44ca-b1a7-a9575757182b",
"description": "test4-changed",
"title": "test4-changed",
"sourceBranch": { "id": "new_branch" },
"targetBranch": { "id": "master" },
"sourceProject": { "id": "4eeae220-270f-461b-92b1-85ff50ee88c1" },
"targetProject": { "id": "4eeae220-270f-461b-92b1-85ff50ee88c1" }
}
Responses
STATUS 200
- пример JSON:
{
"id": "65398dd5-de8e-44ca-b1a7-a9575757182b",
"localId": 5,
"description": "test4-changed",
"title": "test4-changed",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"alias": "01baf9f63e0060a396f4ea69fab8b1cb3afa683c",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "OPENED",
"title": "В работе",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "dbi471",
"name": "Maximm",
"surname": "Kozlovv",
"fullName": "Maximm Kozlovv",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T19:33:04.504736Z",
"updatedAt": "2022-05-03T19:55:57.321984Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": true,
"hasConflicts": false
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.
Метод для слития запроса
POST /project/{userAlias}/{projectAlias}/merge-request/{localId}/merge
Запрос выполняет запрос на слияние
Запрос | Описание |
---|---|
POST /project/{userAlias}/{projectAlias}/merge-request/{localId}/merge |
Выполнить запрос на слияние |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
localId |
Long | Локальный ID запроса на слияние |
Responses
STATUS 200
- пример JSON:
{
"id": "65398dd5-de8e-44ca-b1a7-a9575757182b",
"localId": 5,
"description": "test4-changed",
"title": "test4-changed",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "73cd365b8c15097a24fb90c026f6f616be10b3e9",
"alias": "73cd365b8c15097a24fb90c026f6f616be10b3e9",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "MERGED",
"title": "Слит",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T19:33:04.504736Z",
"updatedAt": "2022-05-03T20:01:09.1453274Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": false,
"hasConflicts": false
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.
Метод для закрытия запроса на слияние
POST /project/{userAlias}/{projectAlias}/merge-request/{localId}/close
Запрос закрывает запрос на слияние
Запрос | Описание |
---|---|
POST /project/{userAlias}/{projectAlias}/merge-request/{localId}/close |
Выполнить запрос на закрытие запроса на слияние |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
localId |
Long | Локальный ID запроса на слияние |
Responses
STATUS 200
- пример JSON:
{
"id": "65398dd5-de8e-44ca-b1a7-a9575757182b",
"localId": 5,
"description": "test4-changed",
"title": "test4-changed",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "73cd365b8c15097a24fb90c026f6f616be10b3e9",
"alias": "73cd365b8c15097a24fb90c026f6f616be10b3e9",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "CLOSED",
"title": "Закрыт",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T19:33:04.504736Z",
"updatedAt": "2022-05-03T20:01:09.1453274Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": false,
"hasConflicts": false
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.
Метод для отмены запроса на слияние
POST /project/{userAlias}/{projectAlias}/merge-request/{localId}/cancel
Запрос отменяет запрос на слияние
Запрос | Описание |
---|---|
POST /project/{userAlias}/{projectAlias}/merge-request/{localId}/cancel |
Выполнить запрос на отмену запроса на слияние |
Переменная пути запроса | Тип | Описание |
---|---|---|
userAlias |
String | Псевдоним пользователя |
projectAlias |
String | Псевдоним проекта |
localId |
Long | Локальный ID запроса на слияние |
Responses
STATUS 200
- пример JSON:
{
"id": "65398dd5-de8e-44ca-b1a7-a9575757182b",
"localId": 5,
"description": "test4-changed",
"title": "test4-changed",
"removeSourceBranch": false,
"squashCommit": false,
"assignedUsers": [],
"reviewers": [],
"labels": [],
"sourceBranch": {
"id": "new_branch",
"title": "new_branch",
"hash": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"alias": "8c9aa77d99b3c7421b14d31b63370f4a36e0bc0a",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"targetBranch": {
"id": "master",
"title": "master",
"hash": "73cd365b8c15097a24fb90c026f6f616be10b3e9",
"alias": "73cd365b8c15097a24fb90c026f6f616be10b3e9",
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"status": {
"id": "CANCELED",
"title": "Отменен",
"hash": null,
"alias": null,
"ownerAlias": null,
"color": null,
"hexColor": null,
"icon": null
},
"createdBy": {
"id": "6736240a-139d-4e62-be4f-cab026562172",
"username": "user2",
"name": "name",
"surname": "surname",
"fullName": "name surname",
"avatar": "https://gitflic.ru/static/image/avatar.jpg"
},
"createdAt": "2022-05-03T19:33:04.504736Z",
"updatedAt": "2022-05-03T20:01:09.1453274Z",
"sourceProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"targetProject": {
"id": "4eeae220-270f-461b-92b1-85ff50ee88c1",
"title": "test-project",
"hash": null,
"alias": "test-project",
"ownerAlias": "user2",
"color": null,
"hexColor": null,
"icon": null
},
"projectAlias": "test-project",
"userAlias": "user2",
"canMerge": false,
"hasConflicts": false
}
STATUS 403
- Нет прав для доступа.
STATUS 404
- Данные по запросу не найдены.