While you can use Platform.sh as your application's primary remote repository, it's very easy to integrate with GitHub, Bitbucket, or GitLab where your code already lives.
Integrations with these services not only makes migration simpler, but also enables you to trigger the deployments of new environments each time a pull request is opened.
While your repository can be either public or private, nothing gets merged until your build and deploy processes are fully tested.
Set up the integration with a single command from the Platform.sh CLI:
Supply that command with a few pieces of information about the repository and then follow the steps to configure when environments are deployed.
After that, your Platform.sh project now acts as a mirror for that repository.
Now every pull request becomes a live development environment on Platform.sh that you can run all of your tests on.
When you have merged the pull request and deleted its source branch, Platform.sh mirrors that action and deactivates the environment.