Ir para a navegação

Mesclar uma branch em uma branch de destino

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.

Parâmetros de caminho

agent_idstringObrigatório

O ID de um agente. Ele é retornado na criação do agente.

source_branch_idstringObrigatório

Identificador exclusivo da ramificação de origem a partir da qual mesclar.

Cabeçalhos

xi-api-keystringOpcional

Parâmetros de consulta

target_branch_idstringObrigatório

O ID da ramificação de destino na qual fazer a mesclagem.

Solicitação

This endpoint expects an object.
archive_source_branchbooleanOpcionalPadrão é true

Indica se deve arquivar a ramificação de origem após a mesclagem

forcebooleanOpcionalPadrão é false

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

conflict_resolutionslist of objects or nullOpcional

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_idstring or nullOpcional

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_idstring or nullOpcional

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.

Resposta

Resposta bem-sucedida

Erros

422
Unprocessable Entity Error