Visual review
Visual review takes screenshots of the pages a pull request changes, on its preview deployment, next to the same pages on your live site, and posts them on the pull request: Before, After and what changed. It's a free beta, and it never blocks merging. Visual review works on GitHub today; it is not yet available on GitLab or Bitbucket.
What it does
- Each page is shot full length at two sizes: desktop (1440 × 900) and mobile (390 × 844). Animations are turned off so the shots compare fairly.
- Before is the page on your production URL. After is the same page on the pull request's preview. Changes highlights what's different.
- Up to 8 pages per pull request.
- It adds no check to the pull request, so it never stops a merge.
Visual review is in beta and on for the organizations we've switched on. Want it? Email us and we'll turn it on.
When it runs
Codzee runs a visual review when a pull request's preview is ready:
- Vercel previews are found automatically, from Vercel's status and its comment on the pull request. Each Vercel project gets its own section in the comment.
- Other hosts are found when they report the preview to GitHub as a deployment. Production deployments are never used as the preview.
- Anything else: add a preview URL pattern in settings, and Codzee works out the preview address when the pull request is opened or pushed.
It runs only when the pull request changes something a page could show. Codzee skips:
- Draft pull requests (it runs once you mark one ready for review).
- Changes with no UI files: tests, stories, type definitions, config files, and plain TypeScript or JavaScript in server folders like
api,server,prismaorscripts.
If you haven't listed pages, Codzee picks them from the page files your change touches (Next.js app and pages folders, SvelteKit and Remix routes). Pages with a dynamic part, like [id], are skipped because they need data to visit. If only shared code changed, like a component or a stylesheet, it checks the home page.
Previews must be public https:// addresses.
Set it up
Open a repository's Settings in the dashboard and find Visual review. Admins can change it. Vercel previews work with no setup at all, but add a production URL to get Before shots to compare with.
| Setting | What it does |
|---|---|
| Production URL | Your live site, like https://acme.com. Codzee opens the same pages there for the Before shots. Leave it empty to see only the preview. |
| Preview URL pattern | Only if your previews aren't reported to GitHub. An https:// address with {number} (the pull request number), {branch} (the branch name, lower case, other characters turned into dashes) or {sha} (the first 7 characters of the commit). Once a pattern is saved, Codzee uses it for every pull request and ignores reported deployments. |
| Pages to check | Paths like /pricing, one per line, at most 8. Leave it empty and Codzee picks the pages your change touches. |
| Protection bypass token | For previews that ask for a login. See below for where it's sent. |
| Custom preview domains | Host names like preview.acme.com, at most 10. Only needed when your previews use your own domain and need the bypass token. |
Once a repository has a production URL, a URL pattern or pages saved, Codzee tells you when no preview turns up for a pull request. The bypass token and custom domains alone don't count. Without any setup, it stays quiet.
Previews that ask for a login
If your Vercel previews use Deployment Protection, Codzee needs a bypass token to see them. In Vercel, open Settings → Deployment Protection → Protection Bypass for Automation, copy the token, and paste it into Protection bypass token.
The token is only sent to:
- Vercel previews that Vercel itself reported (its status, its comment, or a deployment its own app created).
- Previews from your URL pattern, when the pattern's host is fixed and on vercel.app (no placeholder in the host part).
- The custom preview domains you list.
It's never sent to pull requests from forks, to your production site, or to any other address. Before each preview page opens, Codzee sends it in one request so Vercel can set its bypass cookie; the page's own requests don't carry it. It's stored encrypted, and the dashboard only shows that a token is saved, never the token.
Reading the comment
While it works, Codzee posts a comment saying it's taking screenshots. When they're ready, the same comment shows each changed page:
- Desktop and Mobile rows of Before | After | Changes. Click an image to open it full size. Without a production URL you see only After.
- Signals under a page, when there are any: Scrolls sideways on mobile, console errors, and failed requests (same site or other sites), counted on the preview.
- Pages that didn't change are folded into one No visible change line, unless they have a signal worth showing.
- On a big change, thumbnails turn into links and the last pages are summed up as “…and N more changed pages”.
- The footer gives the date the images expire and the reference, like
VR-7K2M9Q.
There's one Visual review comment per pull request, kept at the bottom. When you push a new commit, Codzee posts a fresh comment and deletes its older one; updates for the same commit edit it in place. Codzee only ever edits or deletes its own comments.
What Codzee keeps
- The screenshots (Before, After and Changes), plus each page's console errors and failed requests.
- The browser that takes them gets the page addresses and nothing else. It never gets access to your repository or code.
- Screenshots are deleted 90 days after the run, or sooner if your data retention is shorter.
- Image links in the comment are signed and stop working on the expiry date shown in the footer. Until then, anyone with a link can open that image, like any image in a GitHub comment.
- The record of each run (its pages, outcome and reference) follows your data retention.
More in Security and data handling.
Limits
- 100 visual reviews per organization per month during the beta. Only runs that finish cleanly count: a run that ends with any of the lines below, including running out of time, doesn't. The count starts again on the 1st (UTC).
- Pauses after repeated failures. If 20 runs fail in a day for reasons on your side (for example a preview that doesn't load, asks for a login, or runs out of time), new runs pause for the organization. They resume within a day. Problems on our side never pause you.
- Up to 8 pages and 5 minutes per run.
- Visual reviews don't count as reviewed pull requests.
Turn it off for a repository
Visual review is on for every repository once your organization is in the beta. To stop it for one, an admin unticks Visual review for this repository in that repository's settings and saves. Your other settings are kept for when you turn it back on.
GitHub permissions
To find previews, Codzee needs two read-only GitHub permissions, Deployments and Commit statuses, and the Deployment status and Status events. If your installation hasn't accepted them yet, the dashboard shows a banner. Admins get an Accept on GitHub button; the owner of the GitHub account accepts them there. Until then, Codzee can't tell when a Vercel or deployment preview is ready. Previews from a URL pattern don't need them.
Troubleshooting
When a run can't show screenshots, the comment says why in one line:
| The comment says | What to do |
|---|---|
| No preview found for this pull request. Add a preview URL pattern in Settings → Visual review. | No preview was reported for the commit within 15 minutes. Check that your host deploys previews for pull requests, or add a URL pattern. |
| The preview didn't load. Check the deployment and push again. | The preview returned an error or didn't load. Open the preview yourself, fix the deployment, then push. |
| The preview asks for a login (for example Vercel Deployment Protection). Add a protection bypass token in Settings → Visual review, then push again. | Add the bypass token. If your previews use your own domain, list it under Custom preview domains too. |
| Visual review was busy and couldn't start in time. Push again to retry. | Too many visual reviews were waiting, and this one didn't start in time. Push again. |
| Visual review ran out of time. The pages below finished; the rest didn't. | A run has 5 minutes. Fewer pages, or faster pages, help. |
| Visual review is paused for this organization after repeated failures. It will resume within a day. | Fix whatever made the previews fail (often a missing token or a broken preview). It starts again by itself. |
| This month's 100 visual reviews are used. They reset on 1 <month>. | The monthly allowance is used up. It starts again on the 1st. |
| Visual review couldn't run this time. This is on our side and our team has been alerted. Push again in a little while. | Our problem, not yours. It doesn't count toward your allowance. |
Every line ends with a reference like VR-7K2M9Q. If you need help, email support@codzee.io with that reference and we can find the run straight away.
Can't find what you need? Email support@codzee.io and we'll help.