GitHub can be integrated as the source of truth for your code and allows you to keep your existing GitHub workflows.
Features
- Creating a new Platform.sh environment when a branch is created or a pull request is opened in GitHub
- Rebuilding the environment when new code is pushed to GitHub.
- Deleting the environment when a pull request is merged.
Requirements
- Platform.sh project admin permission
-
Personal access token: classic personal access token or fine-grained personal access token
- GitHub Admin user permissions to add a webhook to GitHub repository
Setup
Setup using the CLI
platform integration:add
Setup In the Console
-
Select the project where you want to enable the integration.
-
Click Settings.
-
Under Project settings, click Integrations.
-
Click + Add integration.
-
Under GitHub, click + Add.
-
Complete the form
-
Check that the other options match what you want.
-
Click Add integration.
For more details of configuration and installation refer to our Integrate with GitHub documentation