plotly/nitpix

Visual diff for CI: compares snapshot PNGs against baselines stored on an orphan git branch, posts a PR review comment with before/after/diff images, and manages a commit status that flips green on "/nitpix approve".

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
snapshots-dirDirectory containing the snapshot PNGs captured by the test runnonitpix-snapshots
artifact-patternGlob of artifacts to download and merge into snapshots-dir (for sharded test matrices that uploaded via nitpix/upload). Set to '' if the snapshots were captured in this same job.nonitpix-snapshots-*
mode'diff' (compare against baselines, report on the PR), 'promote' (make this run's snapshots the new baselines for the current branch), or 'auto' (diff on pull_request events, promote otherwise).noauto
baseBranch whose baselines to compare against (diff mode) or update (promote mode). Defaults to the PR base branch / the pushed branch.no""
baseline-branchOrphan branch storing baselines, pending images and approvalsnonitpix
thresholdodiff per-pixel color difference threshold (0-1, lower is stricter)no0.1
antialiasingIgnore anti-aliased pixels when diffingnotrue
fail-on-newRequire approval for brand-new snapshots (no baseline yet)nofalse
fail-on-missingRequire approval when a baseline snapshot was not captured this runnofalse
fail-on-changeAlso fail this step when unapproved changes exist. Off by default: the commit status (status-context) carries the pass/fail signal so that approving does not require re-running the test matrix.nofalse
commentPost/update the PR review commentnotrue
max-comment-imagesMaximum number of inline images embedded in the PR comment (a changed snapshot costs 3, a new one costs 1; worst diffs first). Snapshots beyond the budget degrade to baseline/new/diff links.no30
thumbnail-widthWidth of the thumbnails embedded in the PR comment (they link to the full-size images). Set to '0' to embed full-size images instead.no360
status-contextCommit status context name (make this a required check)nonitpix/visual
command-prefixSlash-command prefix used in the PR comment instructionsno/nitpix
github-tokenToken with contents:write, pull-requests:write and statuses:writeno${{ github.token }}
odiff-versionodiff-bin version to installno4.3.8
namedescription
status'passed' | 'needs-approval' (diff mode) or 'promoted' | 'skipped' (promote mode)
changed-countNumber of changed snapshots
added-countNumber of new snapshots
missing-countNumber of baselines with no snapshot this run
unapproved-countNumber of snapshots still needing approval