Comprehensive and Detailed Explanation
During the Copado promotion process, the committed changes associated with selected user stories are combined into a dedicated promotion branch.
Each user story has a feature branch that contains its version-controlled metadata modifications.
When a promotion is initiated, Copado creates a promotion branch using the relevant destination environment's branch content as its baseline.
Copado then merges the selected user story feature branches into that promotion branch, following the configured merge sequence.
The resulting promotion branch represents the consolidated changes intended for deployment into the destination Salesforce organization.
This design provides an isolated integration point where Copado can identify overlapping metadata, perform merge-conflict resolution, and prepare the combined deployment contents without immediately modifying the destination branch.
After the promotion changes have been prepared and the deployment completes successfully, Copado performs the necessary branch synchronization to maintain the expected Git representation of the target environment.
The question concerns the initial promotion merge operation, where the feature branch is merged into the promotion branch.
Merging directly into the destination branch would bypass this consolidation step and undermine the controlled promotion workflow.
The source branch is not the destination of the feature merge, and a release branch is not the principal branch type used in this operation.
Official References: Copado — Modify User Story Deployment Steps, Merge Changes Button; Create a Promotion with Source Format Pipelines; Glossary of Terms, Promotion Branch.
Submit