创建合并提案

记录将源分支合并到目标分支的请求。拥有编辑权限的任何人都可以创建请求;之后合并请求需要目标分支的写入权限,因此作者无法自行合并时,可通过此方式将更改提交至受保护的分支。

路径参数

agent_idstring必需

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

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
source_branch_idstring必需
Branch whose changes should be merged.
target_branch_idstring必需
Branch that should receive the changes.
titlestring必需1-140 characters

merge_proposal 的简短标题。

descriptionstring可选<=4096 characters默认为

供审核人员查看的可选详细描述。

requested_reviewer_user_idslist of strings or null可选

要请求审核的用户 ID。

triage_ticket_idstring or null可选

此 merge_proposal 要解决的该智能体分诊工单。若工单仍处于打开状态,合并后将解决该工单。

响应

成功响应

created_merge_proposal_idstring

已创建 merge_proposal 的 ID

错误

422
Unprocessable Entity Error