university-of-denver/quicksilver-autopilot-notification
最新稳定版本:1.0.0
Composer 安装命令:
composer require university-of-denver/quicksilver-autopilot-notification
包简介
Send a notification to a Drupal site when an Autopilot visual regression test is complete
README 文档
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_urlsecret set via Terminus Secretsautopilot_webook_tokensecret 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.
统计信息
- 总下载量: 148
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-12