Skip to content
Push any commits made on the Pantheon dashboard back to the original GitHub repository.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit. Jan 26, 2017
README.md Initial commit. Jan 26, 2017
composer.json Require composer/installers. Addresses #2 Jul 21, 2017
lean-repo-utils.php Carefully convert the HEAD commit into a commit that only modifies th… Mar 9, 2017
push-back-to-github.php Remove Debug Code (#5) Jul 22, 2017

README.md

Quicksilver Pushback

This Quicksilver project is used in conjunction with the various suite of Terminus Build Tools-based example repositories to push any commits made on the Pantheon dashboard back to the original GitHub repository for the site.

This Quicksilver script only works with Pantheon sites that have been configured to use a GitHub PR workflow.

Example composer.json

This project is designed to be included from a site's composer.json file, and placed in its appropriate installation directory by Composer Installers.

In order for this to work, you should have the following in your composer.json file:

{
  "require": {
    "composer/installers": "^1.0.20"
  },
  "extra": {
    "installer-paths": {
      "web/private/scripts/quicksilver": ["type:quicksilver-script"]
    }
  }
}

If you are using one of the example PR workflow projects as a starting point for your site, these entries should already be present in your composer.json.

Example pantheon.yml

Here's an example of what your pantheon.yml would look like if this were the only Quicksilver operation you wanted to use.

api_version: 1

workflows:
  sync_code:
    after:
      - type: webphp
        description: Push changes back to GitHub if needed
        script: private/scripts/quicksilver/quicksilver-pushback/push-back-to-github.php

If you are using one of the example PR workflow projects as a starting point for your site, this entry should already be present in your pantheon.yml.

You can’t perform that action at this time.