Saltar a la navegación

Fusionar una rama en una rama 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 ruta

agent_idstringRequerido
El ID de un agente. Se devuelve al crear el agente.
source_branch_idstringRequerido

Identificador único de la rama de origen desde la que se fusionará.

Encabezados

xi-api-keystringOpcional

Parámetros de consulta

target_branch_idstringRequerido

El ID de la rama de destino en la que se realizará la fusión.

Solicitud

This endpoint expects an object.
archive_source_branchbooleanOpcionalValor predeterminado: true

Indica si se debe archivar la rama de origen después de fusionarla

forcebooleanOpcionalValor predeterminado: 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.

Respuesta

Respuesta correcta.

Errores

422
Unprocessable Entity Error