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.

Paramètres de chemin

agent_idstringRequis
The id of an agent. This is returned on agent creation.
merge_proposal_idstringRequis

Unique identifier for the merge_proposal.

En-têtes

xi-api-keystringOptionnel

Requête

This endpoint expects an object.
stateenumRequis
The review verdict.
Valeurs autorisées:
commentstringOptionnel<=4096 charactersPar défaut
Optional comment to leave with the review.

Réponse

Successful Response
idstring
agent_idstring
source_branch_idstring
target_branch_idstring
source_tip_version_id_at_creationstring
titlestring
created_atinteger
updated_atinteger
descriptionstringOptionnelPar défaut
requested_reviewer_user_idslist of stringsOptionnel
reviewslist of objectsOptionnel
commentslist of objectsOptionnel
outcomeobjectOptionnel
author_user_idstringOptionnel

User ID of the merge_proposal’s author.

access_infoobjectOptionnel

Access information for the merge_proposal, including creator.

Erreurs

422
Merge Proposals Submit Review Request Unprocessable Entity Error