नेविगेशन पर जाएँ

ब्रांच को टारगेट ब्रांच में मर्ज करें

Merge a branch into a target branch. If both branches changed the same field, the merge returns 409 unless conflict_resolutions settles every conflict the merge preview reports, or force is set.

पाथ पैरामीटर

agent_idstringआवश्यक

एजेंट की id। यह एजेंट बनाते समय लौटाई जाती है।

source_branch_idstringआवश्यक

जिस source branch से मर्ज करना है, उसका विशिष्ट पहचानकर्ता।

हेडर

xi-api-keystringवैकल्पिक

क्वेरी पैरामीटर

target_branch_idstringआवश्यक

जिस टारगेट ब्रांच में मर्ज करना है उसकी ID।

अनुरोध

This endpoint expects an object.
archive_source_branchbooleanवैकल्पिकडिफ़ॉल्ट: true

क्या मर्ज करने के बाद सोर्स ब्रांच को आर्काइव करना है

forcebooleanवैकल्पिकडिफ़ॉल्ट: false

Keep the source branch’s value for every conflict instead of sending 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वैकल्पिक

Source branch tip version the conflicts were resolved against (source_tip_version_id of the preview). The request fails with 409 if the branch moved since.

target_tip_idstring or nullवैकल्पिक

Target branch tip version the conflicts were resolved against (target_tip_version_id of the preview). The request fails with 409 if the branch moved since.

रिस्पॉन्स

सफल रिस्पॉन्स

त्रुटियाँ

422
Unprocessable Entity Error