Merge Sprint Branch
In this section, you will learn how to merge the sprint branch to the main branch.
After completing the development of API definitions in the sprint branch, you can choose to merge individual APIs or merge all changes in the branch to the main branch at once.
Single API Merge
When the development of an API is complete, click the right button in the left sidebar menu and select "Merge into the main".
You can double-check the target API in the confirmation box and select overwrite, add, or do not merge in three ways:
Overwrite
Directly overwrite all data of the current API in the main branch.
Add
Do not overwrite the original content in the main branch, but supplement the new content in the current sprint branch to the original API.
Do not merge
Temporarily do not perform the merge operation.
If you want to change the target API, you can click the "Change" button in the confirmation box. It is recommended to compare the differences between the current content and the target API before formally merging to the main branch.
Batch Merge
If there are a large number of APIs in the current sprint branch that need to be batch merged to the main branch, you can click the "Merge into the main" option in the lower left corner of the page.
You can view which APIs in the current sprint branch have changed in the confirmation box and batch specify an appropriate handling method. After confirming without errors, click the "Merge" button to complete the branch merge.