Repository navigation
ci: take screenshots for new live sites weekly and propose them as a PR - #3
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Clean against the checklist. This PR only adds |
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
…n summary A 404 or 5xx page was screenshotted like any other, and without --all it would never be retaken. Failed shots now also emit an Actions warning. Raised in Claude review on #3.
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
…ect off-origin The npm install and the sync ran in the job holding contents and pull-request write. Shooting now runs read-only and hands the screenshots to a propose job that installs nothing. A homepage that redirects elsewhere is no longer printed. Raised in Claude review on #3.
A new repo with a live site sat on the desk as a blank sheet until someone added its screenshot by hand. shots.yml syncs the current repo list, shoots only what is missing (or everything with 'retake all'), and opens a PR.
…n summary A 404 or 5xx page was screenshotted like any other, and without --all it would never be retaken. Failed shots now also emit an Actions warning. Raised in Claude review on #3.
…ect off-origin The npm install and the sync ran in the job holding contents and pull-request write. Shooting now runs read-only and hands the screenshots to a propose job that installs nothing. A homepage that redirects elsewhere is no longer printed. Raised in Claude review on #3.
Raised in Claude review on #3.
kanywst
force-pushed
the
feat/auto-shots
branch
from
October 23, 2026 18:57
5203064 to
9046a64
Compare
…open shots PR Raised in Claude review on #3.
Raised in Claude review on #3.
Raised in Claude review on #3.
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
…n summary A 404 or 5xx page was screenshotted like any other, and without --all it would never be retaken. Failed shots now also emit an Actions warning. Raised in Claude review on #3.
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
…ect off-origin The npm install and the sync ran in the job holding contents and pull-request write. Shooting now runs read-only and hands the screenshots to a propose job that installs nothing. A homepage that redirects elsewhere is no longer printed. Raised in Claude review on #3.
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
Raised in Claude review on #3.
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
…open shots PR Raised in Claude review on #3.
kanywst
added a commit
that referenced
this pull request
Oct 23, 2026
Raised in Claude review on #3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new repo with a live site shows up on the desk as a blank sheet until someone adds its screenshot by hand. This takes those screenshots automatically.
scripts/shoot.tsopens each site on the org's Pages origin at 1280×800 with reduced motion and savessrc/assets/shots/<repo>.png. By default it only shoots repos that have no screenshot yet, so existing prints don't churn every week. Pass--allto retake every one.shots.ymlruns every Monday, and by hand with a "retake all" switch. It syncs the current repo list first, because the committedrepos.jsoncan lag behind the org. It runs in the same Playwright image as e2e and opens a PR when anything changed.Also changed outside this diff: the repo's default workflow token permission is now
read. Every workflow here already declares the permissions it needs.Tested locally: with one screenshot removed, the script took exactly that one (1280×800) and kept the other 7.