Repository navigation
feat(scripts): pr-evidence publishes before and after screenshots for a pull request - #559
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:00
bea4d89 to
d7c0cd7
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:05
a8483d3 to
b9e4554
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:05
d7c0cd7 to
447a3e8
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:06
b9e4554 to
8d683f2
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:06
447a3e8 to
4487017
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:09
8d683f2 to
ded7b66
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:09
4487017 to
954c6be
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:16
ded7b66 to
d3dde9b
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:16
954c6be to
70fbd79
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:24
d3dde9b to
794867d
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:24
70fbd79 to
fdaeffe
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:29
794867d to
2a9db07
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:29
fdaeffe to
62bb8ad
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:37
62bb8ad to
12e2526
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:43
e6c7a15 to
57ebd01
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 04:43
12e2526 to
bd504ea
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 04:46
57ebd01 to
0ee4c5e
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 05:08
60cc9ee to
eada207
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 05:14
eada207 to
bf39584
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 05:18
621ccfb to
58b84d1
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 05:18
2cc1ba3 to
c86f194
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 05:20
58b84d1 to
ccc20f2
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 05:20
c86f194 to
cbf11c3
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 05:28
cbf11c3 to
4a7e644
Compare
Jacksondr5
force-pushed
the
j5code/live-test-evidence
branch
from
October 12, 2026 05:32
4a7e644 to
5ed77ae
Compare
Jacksondr5
force-pushed
the
j5code/live-test-base
branch
from
October 12, 2026 05:33
e0c7c31 to
43b4d78
Compare
19 tasks done
… a pull request Given a pull request number and captioned pairs of PNG files, the script checks each file really is a PNG, pushes them to pr-<number>/ on the j5/evidence branch from a fresh shallow clone, rebasing if another agent pushed first, checks each image link returns an image, and prints the before and after table for the description. Part of #546. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…change adds --new "<caption>" <after.png> publishes one image, and the table says "new" in its before column. Part of #546. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review fixes for #559: - On a GitHub remote the script refuses any branch but j5/evidence and a j5/evidence-selftest-* branch, so it cannot put screenshots on a pull request's own branch or on main. Any branch is allowed on a local remote. - A caption's pipes are escaped in the image alt text as well as the caption cell, and newlines and brackets are kept out of the alt text, so a caption cannot break its row or its images. Part of #546. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…not a local path Part of #546. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a proven local bare repository The guard allowed any branch on a remote it did not recognise as GitHub, and its pattern missed valid GitHub URL forms and local checkouts of the real repository. It now refuses every branch but j5/evidence and a self-test branch unless the remote is an existing local directory that git reports as a bare repository. Part of #546. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 37 minutes for your next included review. View limit details
Comment |
4 of 8 tasks
This branch was successfully deployed
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.
Problem
Every PR that changes UI needs before and after screenshots on the PR. Getting them there has several easy mistakes: a JPEG saved under a
.pngname that GitHub will not render, a commit hook that fails on the evidence branch, a push that collides with another agent's, and a link that returns 404 just after a push. Agents have been redoing these steps by hand. Part of #546 (stage 3, last of five PRs).What changed
A new script:
--pairis a state the change altered.--newis a state the change adds, which has no before; the table says "new" in that column. Both repeat, in row order.fileand refused unless it really is a PNG.j5/evidencebranch is cloned shallowly into a temporary directory. A fresh clone has no hooks, which avoids the repository's pre-commit hook failing on a branch with no source tree.pr-<number>/. Each name carries its order, caption, side and the first eight characters of the file's hash, so a changed image gets a new name and an old link never shows a new picture.image/type, in therefs/heads/j5/evidenceform, with a short retry.PNG only; video is out of scope. Nothing is written to the pull request's own branch or to this checkout.
--remoteand--branchpoint it somewhere else for testing. The script refuses every branch butj5/evidenceand aj5/evidence-selftest-*branch, so it cannot put screenshots on a pull request's own branch or on main, whatever form the remote takes. The one exception is a remote that is an existing local directory which git reports as a bare repository, which is what the tests push to; a local checkout does not qualify, since it could be a clone of the real repository. The link check runs only for a GitHub remote. A caption cannot break the table: its pipes are escaped in the caption cell and in the image alt text, and newlines and brackets are kept out of the alt text.How the real push path was verified
Nothing was pushed to
j5/evidence.--branch j5/mainwith the default remote is refused before anything is cloned.j5/evidence-selftest-builder-<timestamp>from the tip ofj5/evidence, ran the script with--branchset to it and two rows (one with no before), and it cloned, committed, pushed, got 200 with an image type for all three links, and printed the table. I then deleted the branch and confirmed it was gone. So clone, commit, push, the link form and the link check all ran against the real remote; only the branch name differed.Not exercised: a push to
j5/evidenceitself, a link that stays 404 past the retry, and a machine with no git identity configured (git's own error is passed through).Checklist
FORK.md(case text and file-table row) in this PR (none edited)docs/j5/product/upstream.md(none)AGENTS.md). A developer tool with one entry point. There is no removal command; a wrong image is replaced by publishing the right one under its new name.docs/j5/product/and user docs rewritten where this changes them (the skill text is in docs(j5): agents live-test with one setup script, the Browser panel and a testing skill #549)Tests:
vp test run scripts/j5/pr-evidence.test.ts(11 pass): argument parsing and its refusals, the GitHub remote forms, the link form, file naming, the table, PNG checking against JPEG bytes under a.pngname, a publish to a bare repository, a repeat publish of the same images, and a rebase onto another agent's push. Typecheck and lint are clean on the touched files.Built with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code