更新合并提案

编辑开放的 merge_proposal 的标题或说明,或将其关闭。作者关闭时会记录为已撤回;其他人关闭时会记录为已拒绝。

路径参数

agent_idstring必需

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

merge_proposal_idstring必需

merge_proposal 的唯一标识符。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
titlestring or null可选1-140 characters

merge_proposal 的新标题。

descriptionstring or null可选<=4096 characters

merge_proposal 的新描述。

requested_reviewer_user_idslist of strings or null可选

用于请求审核的替换用户 ID 列表。

closeboolean可选默认为 false

设为 true 时,关闭 merge_proposal 而不合并。

响应

成功响应

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