ナビゲーションにスキップ

ブランチをmainにリベース

ソースブランチ(デフォルトはメイン)から変更を取り込み、このブランチの新しいバージョンとして作成します。両方のブランチで同じフィールドが変更されている場合、conflict_resolutions でリベースのプレビューに表示されたすべての競合を解決しない限り、リベースは409を返します。提案アクセス権のみを持つ呼び出し元は、親ブランチ(デフォルトのソース)から自分のブランチに変更を取り込めます。

パスパラメータ

agent_idstring必須

エージェントのID。エージェント作成時に返されます。

branch_idstring必須

マージ元のソースブランチの一意の識別子。

ヘッダー

xi-api-keystringオプション

クエリパラメータ

source_branch_idstring or nullオプション

変更をプルする元ブランチのID。デフォルトはエージェントのメインブランチです。

リクエスト

This endpoint expects an object.
conflict_resolutionslist of objects or nullオプション

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.

branch_tip_idstring or nullオプション

競合の解決基準となった、リベース対象ブランチのtipバージョン(リベースプレビューの source_tip_version_id)。その後ブランチが更新されている場合、リクエストは409で失敗します。

source_tip_idstring or nullオプション

競合の解決基準となった、変更の取り込み元ブランチ(source_branch_id、デフォルトはmainブランチ)のtipバージョン(リベースプレビューの target_tip_version_id)。その後ブランチが更新されている場合、リクエストは409で失敗します。

レスポンス

成功レスポンス。

エラー

422
Unprocessable Entity Error