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.

パスパラメータ

agent_idstring必須
The id of an agent. This is returned on agent creation.
merge_proposal_idstring必須

Unique identifier for the merge_proposal.

ヘッダー

xi-api-keystringオプション

リクエスト

This endpoint expects an object.
stateenum必須
The review verdict.
許可された値:
commentstringオプション<=4096 charactersデフォルト値
Optional comment to leave with the review.

レスポンス

Successful Response
idstring
agent_idstring
source_branch_idstring
target_branch_idstring
source_tip_version_id_at_creationstring
titlestring
created_atinteger
updated_atinteger
descriptionstringオプションデフォルト値
requested_reviewer_user_idslist of stringsオプション
reviewslist of objectsオプション
commentslist of objectsオプション
outcomeobjectオプション
author_user_idstringオプション

User ID of the merge_proposal’s author.

access_infoobjectオプション

Access information for the merge_proposal, including creator.

エラー

422
Merge Proposals Submit Review Request Unprocessable Entity Error