Merge A Merge Proposal

Execute the merge. The caller must have write access to the target branch (admins only, for a protected branch), so this is where a reviewer approves and merges a request opened by someone who could not.

Parámetros de ruta

agent_idstringRequerido
The id of an agent. This is returned on agent creation.
merge_proposal_idstringRequerido

Unique identifier for the merge_proposal.

Encabezados

xi-api-keystringOpcional

Solicitud

This endpoint expects an object.
archive_source_branchbooleanOpcionalValor predeterminado: true
Whether to archive the source branch after merging.
forcebooleanOpcionalValor predeterminado: false

Force source branch changes onto the target, overriding timestamp-based conflict resolution.

Respuesta

Successful Response
idstring
agent_idstring
source_branch_idstring
target_branch_idstring
source_tip_version_id_at_creationstring
titlestring
created_atinteger
updated_atinteger
descriptionstringOpcionalValor predeterminado:
requested_reviewer_user_idslist of stringsOpcional
reviewslist of objectsOpcional
commentslist of objectsOpcional
outcomeobjectOpcional
author_user_idstringOpcional

User ID of the merge_proposal’s author.

access_infoobjectOpcional

Access information for the merge_proposal, including creator.

Errores

422
Merge Proposals Merge Request Unprocessable Entity Error