• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multiframework
    • Security
    Frameworks
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Languages
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • Pricing
  • Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Login
  • Watch a demo
  • Free trial
Meet Upsun. The new, self-service, fully managed PaaS, powered by Platform.sh.Try it now
Blog

Automatically deploy your GitHub branches and pull requests

console
04 May, 2015
Augustin Delaporte
Augustin Delaporte
VP Product

Have you ever dreamt of automatically testing and reviewing every single feature from your GitHub repository on a production-like environment with a dedicated URL?

Today, the dream has come true!

Using the new GitHub integration provided by Platform.sh, you can automatically deploy, for every branch and/or pull request on GitHub, a complete isolated production-like environment with a specific URL that you can use and share.

How does it works?

Follow the documentation to activate the GitHub integration.

You can check and update what your integration is tracking using the Platform.sh CLI

Platform integration cli

Let’s say you are tracking pull requests. Starting now, every pull request that you open will trigger a deployment on Platform.sh.

Here is an example with two pull requests:

Github pull requests

You also get the status of the deployment in the pull request page. The  details  link will automatically redirect you to the environment on Platform.sh:

Github status

What happens is that the GitHub integration is pushing your changes on your branch directly to the Platform.sh Git remote:

Platform UI

When you merge the pull request, the environment will also be merged in Platform.sh which correspond to a deployment of the parent environment. You can then use this simple workflow to deploy in production directly.

How about a private repository?

It works exactly the same way with private GitHub repositories.

The only difference is that you need to grant access to the following scopes to the token:

  • public repository:  public_reporepo:status
  • private repository which belongs to youreporepo:status
  • private repository which belongs to an organizationreporepo:statusread:org

What about other integrations?

You can already integrate with HipChat.

We’re currently improving the GitHub integration and implementing many others.

Follow us on Twitter to stay up to date.

Get the latest Platform.sh news and resources
Subscribe

Related Content

Simple. Streamlined. Secure. Effortless user management has arrived with Teams

Simple. Streamlined. Secure. Effortless user management has arrived with Teams

Company
AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
  •  
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺