Diffy
Dispatch a visual regression run against the just-deployed environment via the shipped GitHub Actions workflow.
This channel does not call Diffy directly. It sends a GitHub
repository_dispatch event to the consumer repository; the
test-vr.yml workflow then runs the
actual Diffy comparison and posts the result back to the pull request.
Setup
- Enable visual regression during installation (or ship
test-vr.ymlmanually) - see Visual regression. - Add a GitHub token with
reposcope asVORTEX_NOTIFY_DIFFY_TOKENto the hosting environment (falls back toVORTEX_NOTIFY_GITHUB_TOKEN, thenGITHUB_TOKEN). - Add
diffytoVORTEX_NOTIFY_CHANNELS.
Environment variables
| Variable | Required | Default | Location | Description |
|---|---|---|---|---|
VORTEX_NOTIFY_DIFFY_TOKEN | Yes | VORTEX_NOTIFY_GITHUB_TOKEN, then GITHUB_TOKEN | Hosting | GitHub token with repo scope used to call repository_dispatch |
VORTEX_NOTIFY_DIFFY_REPOSITORY | Yes | VORTEX_NOTIFY_GITHUB_REPOSITORY | Hosting | Repository in owner/repo format |
VORTEX_NOTIFY_DIFFY_SOURCE_ENV | No | production | .env | Diffy source environment used as the baseline (production, staging, development) |
VORTEX_NOTIFY_DIFFY_EVENT_TYPE | No | vr_run | .env | repository_dispatch event type the workflow listens for |
VORTEX_NOTIFY_DIFFY_BRANCHES | No | .env | Restrict dispatch to specific branches (comma-separated). When empty, every deployment dispatches and the workflow gates on PR label |
Event behavior
Diffy dispatch only runs for post_deployment events. pre_deployment is
skipped because the target environment is not yet ready for comparison.