将分支变基到主分支
将源分支(默认为主分支)的更改作为新版本拉取到此分支。如果两个分支都更改了同一字段,除非 conflict_resolutions 解决 rebase 预览报告的所有冲突,否则 rebase 会返回 409。仅有提议权限的调用方可从父分支(其默认源)拉取到自己的分支。
路径参数
智能体 ID。创建智能体时返回此值。
要合并的源分支唯一标识符。
请求头
查询参数
要拉取更改的源分支 ID。默认为智能体的主分支。
请求
Side to keep, or custom text where the conflict accepts it, for each conflict the preview reported. A merge or rebase with conflicts is rejected unless there is one for every conflict, sent with both tip ids. On a merge it can’t be combined with force, which lets the source win every conflict instead.
Tip version of the branch being rebased (source_tip_version_id of the rebase preview) the conflicts were resolved against. The request fails with 409 if it moved since.
Tip version of the branch the changes are pulled from (source_branch_id, the main branch by default; target_tip_version_id of the rebase preview) the conflicts were resolved against. The request fails with 409 if it moved since.
响应
成功响应