Review A Merge Proposal

Approve a merge_proposal or request changes on it. A user’s latest review replaces their previous one. Non-admins need an approval from another user before the merge is allowed.

Parâmetros de caminho

agent_idstringObrigatório
The id of an agent. This is returned on agent creation.
merge_proposal_idstringObrigatório

Unique identifier for the merge_proposal.

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an object.
stateenumObrigatório
The review verdict.
Valores permitidos:
commentstringOpcional<=4096 charactersPadrão é
Optional comment to leave with the review.

Resposta

Successful Response
idstring
agent_idstring
source_branch_idstring
target_branch_idstring
source_tip_version_id_at_creationstring
titlestring
created_atinteger
updated_atinteger
descriptionstringOpcionalPadrão é
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.

Erros

422
Merge Proposals Submit Review Request Unprocessable Entity Error