In SFDX, script to identify all changes made on this branch, to generate package.xml and destructiveChanges.xml
Make changes on feature branches, then merge them into a sandbox branch. This script identifies all changes made on this sandbox branch since it was created, and generates the package.xml (and destructiveChanges.xml) to push changes to the sandbox. If you are doing CI (Continuous Integration), it will let you find changes since the previous commit.
In feature branch, VS Code feature workspace, and scratch org :
- make changes on a feature branch in scratch orgs
- generate pull requests for these features towards the sandbox branch
In GitHub :
- merge pull requests into the sandbox branch
In sandbox branch, VS Code sandbox workspace, and sandbox org :
- pull into your VS Code workspace changes merged previously
- run script prepare-deploy.sh to generate package.xml of ALL changes already made on this sandbox branch
- in VS Code, right-click on manifest/deploy/package.xml and choose "SFDX: Deploy Source in Manifest to Org"