university-of-denver/quicksilver-autopilot-notification

Send a notification to a Drupal site when an Autopilot visual regression test is complete

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:quicksilver-script

pkg:composer/university-of-denver/quicksilver-autopilot-notification

1.0.0 2026-01-12 20:16 UTC

This package is auto-updated.

Last update: 2026-01-13 17:20:21 UTC


README

This project was developed from a template for new Quicksilver projects to utilize so that Quicksilver scripts can be installed through Composer.

Original template: https://github.com/pantheon-quicksilver/quicksilver-template

Requirements:

  • PHP 8.0 or higher
  • Composer
  • Drupal 9+ site running on Pantheon
  • autopilot_webhook_url secret set via Terminus Secrets
  • autopilot_webook_token secret set via Terminus Secrets
  • Autopilot Toolbar module installed

Installation

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"
  },
  "extra": {
    "installer-paths": {
      "web/private/scripts/quicksilver": ["type:quicksilver-script"]
    }
  }
}

Then, you can install this package via Composer:

composer require university-of-denver/quicksilver-autopilot-notification:^1

Add to pantheon.yml

Here's what you need to add to your pantheon.yml file to run the Quicksilver script after an Autopilot visual regression test:

api_version: 1

workflows:
  autopilot_vrt:
    after:
      - type: webphp
        description: Send VRT status to Drupal
        script: private/scripts/quicksilver/pantheon-quicksilver/autopilot-webhook.php

Add secrets via Terminus

Follow the instructions in the Terminus plugin docs to add the Terminus Secrets Manager plugin to your local machine.

You'll need to add the following secrets to your Pantheon site via Terminus:

terminus secret:site:set <site-name> autopilot_webhook_url <your-webhook-url>
terminus secret:site:set <site-name> autopilot_webhook_token <your-webhook-token>

Pantheon Autopilot Toolbar Module

Please see the Pantheon Autopilot Toolbar Module documentation for more information on how to install and configure the module.

This Quicksilver code will send a webhook that will trigger the Pantheon Autopilot Toolbar module to display a notification in the browser with the VRT status.