Przejdź do nawigacji

Scal gałąź z gałęzią docelową

Merge a branch into a target branch. If both branches changed the same field, the merge returns 409 unless conflict_resolutions settles every conflict the merge preview reports, or force is set.

Parametry ścieżki

agent_idstringWymagany
ID agenta. Jest zwracane przy tworzeniu agenta.
source_branch_idstringWymagany

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

Nagłówki

xi-api-keystringOpcjonalny

Parametry zapytania

target_branch_idstringWymagany

ID docelowej gałęzi do scalenia.

Żądanie

This endpoint expects an object.
archive_source_branchbooleanOpcjonalnyDomyślnie true

Czy zarchiwizować gałąź źródłową po scaleniu

forcebooleanOpcjonalnyDomyślnie false

Keep the source branch’s value for every conflict instead of sending conflict_resolutions

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.

source_tip_idstringOpcjonalny

Source branch tip version the conflicts were resolved against (source_tip_version_id of the preview). The request fails with 409 if the branch moved since.

target_tip_idstringOpcjonalny

Target branch tip version the conflicts were resolved against (target_tip_version_id of the preview). The request fails with 409 if the branch moved since.

Odpowiedź

Pomyślna odpowiedź

Błędy

422
Branches Merge Request Unprocessable Entity Error