Skip to main content

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

  1. Enable visual regression during installation (or ship test-vr.yml manually) - see Visual regression.
  2. Add a GitHub token with repo scope as VORTEX_NOTIFY_DIFFY_TOKEN to the hosting environment (falls back to VORTEX_NOTIFY_GITHUB_TOKEN, then GITHUB_TOKEN).
  3. Add diffy to VORTEX_NOTIFY_CHANNELS.

Environment variables

VariableRequiredDefaultLocationDescription
VORTEX_NOTIFY_DIFFY_TOKENYesVORTEX_NOTIFY_GITHUB_TOKEN, then GITHUB_TOKENHostingGitHub token with repo scope used to call repository_dispatch
VORTEX_NOTIFY_DIFFY_REPOSITORYYesVORTEX_NOTIFY_GITHUB_REPOSITORYHostingRepository in owner/repo format
VORTEX_NOTIFY_DIFFY_SOURCE_ENVNoproduction.envDiffy source environment used as the baseline (production, staging, development)
VORTEX_NOTIFY_DIFFY_EVENT_TYPENovr_run.envrepository_dispatch event type the workflow listens for
VORTEX_NOTIFY_DIFFY_BRANCHESNo.envRestrict 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.