Templates / Post PR preview page screenshots to GitHub pull requests with Snapshot Site

Post PR preview page screenshots to GitHub pull requests with Snapshot Site

Unknown

by Rabii Jemaiel ✓ · 1 views · created 2026-09-02 · DevOps

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects GitHub and Snapshot Site (community).

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Build Preview Page List (Code): runs custom JavaScript code
  2. Wait: waits 30 seconds
  3. Loop Over Changed Pages (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Build PR Comment (Code): runs custom JavaScript code
  5. Capture Preview Page (Snapshot Site): uses Snapshot Site
  6. Post Preview Screenshots on the PR (GitHub): create comment
  7. Check for API Error (If): checks a condition and branches into true / false
  8. Record Failed Capture (Edit Fields (Set)): sets 11 fields: label, path, url…
  9. Record Page Capture (Edit Fields (Set)): sets 11 fields: label, path, url…

Services it uses

GitHubSnapshot Site (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-snapshot-site is verified or supports 3.0 (used in Capture Preview Page).

Nodes used (8)

From the author

Quick overview This workflow receives a webhook from your CI when a pull request preview is deployed, screenshots only the changed preview routes using Snapshot Site, and posts a single GitHub pull request comment containing a summary table, embedded…

Excerpt from Rabii Jemaiel's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.