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

ブランチをターゲットブランチにマージ

ブランチをターゲットブランチにマージします。両方のブランチで同じフィールドが変更されている場合、マージプレビューで報告されたすべての競合が conflict_resolutions で解決されているか、force が設定されていない限り、マージは409を返します。

パスパラメータ

agent_idstring必須

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

source_branch_idstring必須

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

ヘッダー

xi-api-keystringオプション

クエリパラメータ

target_branch_idstring必須

マージ先の対象ブランチのID。

リクエスト

This endpoint expects an object.
archive_source_branchbooleanオプションデフォルト値 true

マージ後にソースブランチをアーカイブするかどうか

forcebooleanオプションデフォルト値 false

conflict_resolutions を送信せず、すべての競合でソースブランチの値を保持します

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.

source_tip_idstring or nullオプション

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

target_tip_idstring or nullオプション

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

レスポンス

成功レスポンス。

エラー

422
Unprocessable Entity Error