Przejdź do nawigacji

Wykonaj rebase gałęzi na Main

Pobiera zmiany z gałęzi źródłowej (domyślnie głównej) do tej gałęzi jako nową wersję. Jeśli obie gałęzie zmieniły to samo pole, rebase zwraca 409, chyba że conflict_resolutions rozwiązuje każdy konflikt zgłoszony w podglądzie rebase. Osoby mające tylko dostęp do proponowania mogą pobierać zmiany do własnej gałęzi z jej gałęzi nadrzędnej (domyślnego źródła).

Parametry ścieżki

agent_idstringWymagany
ID agenta. Jest zwracane przy tworzeniu agenta.
branch_idstringWymagany

Unikalny identyfikator gałęzi źródłowej do scalenia.

Nagłówki

xi-api-keystringOpcjonalny

Parametry zapytania

source_branch_idstringOpcjonalny

ID gałęzi, z której mają zostać pobrane zmiany. Domyślnie główna gałąź agenta.

Żądanie

This endpoint expects an object.
conflict_resolutionslist of objectsOpcjonalny

Side to keep, or custom text where the conflict accepts it, for each conflict the preview reported. A merge or rebase with conflicts is rejected unless there is one for every conflict, sent with both tip ids. On a merge it can’t be combined with force, which lets the source win every conflict instead.

branch_tip_idstringOpcjonalny

Tip version of the branch being rebased (source_tip_version_id of the rebase preview) the conflicts were resolved against. The request fails with 409 if it moved since.

source_tip_idstringOpcjonalny

Tip version of the branch the changes are pulled from (source_branch_id, the main branch by default; target_tip_version_id of the rebase preview) the conflicts were resolved against. The request fails with 409 if it moved since.

Odpowiedź

Pomyślna odpowiedź

Błędy

422
Branches Rebase Request Unprocessable Entity Error