跳到导航

创建合并提案

创建将源分支合并到目标分支的请求。仅有提议权限的调用方可从自己拥有的分支向其父分支发起提议。合并需要目标分支的写入权限。

路径参数

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

要请求审核的用户 ID。

triage_ticket_idstring可选

Issue of this agent that the merge_proposal resolves. Merging it resolves the issue if still open.

响应

成功响应

created_merge_proposal_idstring

已创建 merge_proposal 的 ID

错误

422
Merge Proposals Create Request Unprocessable Entity Error