审核合并提案

批准 merge_proposal 或请求修改。用户最新的审核会替代之前的审核。非管理员需要获得另一位用户的批准后才能合并。

路径参数

agent_idstring必需

智能体 ID。创建智能体时返回此值。

merge_proposal_idstring必需

merge_proposal 的唯一标识符。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
stateenum必需

审核结论。

允许的值:
commentstring可选<=4096 characters默认为

随审核留下的可选评论。

响应

成功响应

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 or null可选

merge_proposal 作者的用户 ID。

access_infoobject or null可选

merge_proposal 的访问信息,包括创建者。

错误

422
Unprocessable Entity Error