合并合并提案

执行合并。调用方必须拥有目标分支的写入权限(对于受保护分支,仅限管理员),因此审核者可在此批准并合并由无权操作者发起的请求。

路径参数

agent_idstring必需

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

merge_proposal_idstring必需

merge_proposal 的唯一标识符。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
archive_source_branchboolean可选默认为 true

合并后是否归档源分支。

forceboolean可选默认为 false

将源分支更改强制应用到目标,覆盖基于时间戳的冲突解决方式。

响应

成功响应

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