Repository navigation
Ask PRs that change the UI for screenshots or a recording - #17494
Conversation
Adds a PR template with a Screenshots section and a non-blocking check that flags PRs touching the shell, configs, themes or package lists when the section is empty. A "No visible change: <reason>" line satisfies it. Co-authored-by: Claude Opus 5.5 <[email protected]>
[Low impact] The PR changes how contributors provide visual evidence for selected UI-related pull requests. The PR appears safe to merge, with two non-blocking parsing fixes recommended. FindingsSummaryAdds a PR template, a path-filtered workflow that asks for visual evidence, and guidance for agents to include captures in the PR body.
Reviews (1) · Last reviewed commit: "Ask PRs that change the UI for screensho..." · Reviewed by Greptile |
|
|
||
| # Read the Screenshots section when the template is there; without it, | ||
| # only embedded media anywhere in the body counts. | ||
| section = re.search(r"^#{1,6}\s*(screenshots?|recordings?|demo)\b.*?$(.*?)(?=^#{1,6}\s|\Z)", body, flags=re.S | re.M | re.I) |
There was a problem hiding this comment.
Valid screenshots get rejected
Images under ### Before and ### After are rejected even when both headings are inside ## Screenshots. The section ends at the next heading of any level, so the check searches only the blank space before ### Before. Stop at a heading of the same or higher level instead.
| section = re.search(r"^#{1,6}\s*(screenshots?|recordings?|demo)\b.*?$(.*?)(?=^#{1,6}\s|\Z)", body, flags=re.S | re.M | re.I) | ||
| media = r"!\[[^\]]*\]\(|<img\b|<video\b|github\.com/user-attachments/|https?://\S+\.(png|jpe?g|gif|webp|mp4|webm|mov)\b" | ||
|
|
||
| if re.search(r"^\s*no visible change:\s*\S", body, flags=re.M | re.I): |
There was a problem hiding this comment.
An empty No visible change: line can pass without a reason. Because \s* includes newlines, the match can continue to the next paragraph or heading and count its first character as the reason. Restrict the whitespace after the colon to spaces and tabs so the reason must appear on that line.
Adds a PR template with a Screenshots section and a non-blocking check that flags PRs touching the shell, configs, themes or package lists when the section is empty. A "No visible change: <reason>" line satisfies it. Co-authored-by: Claude Opus 5.5 <[email protected]>
Adds a PR template with a Screenshots section and a non-blocking check that flags PRs touching the shell, configs, themes or package lists when the section is empty. A "No visible change: <reason>" line satisfies it. Co-authored-by: Claude Opus 5.5 <[email protected]>
What changes
PRs that change the UI now get asked for before/after screenshots, and a short recording when motion or interaction is part of the change. Reviewing a visual change from the diff alone is slow; seeing it takes seconds.
Omarchy had no PR template, so this adds one: What changes, Verification, Screenshots. It's modeled on what T3 Code asks for in theirs.
The new
Check visual evidenceworkflow runs on PRs touchingshell/,config/,themes/,applications/,install/*.packages, and the on-screen parts ofdefault/(themed templates, hypr, the menu, fonts, GTK, Plymouth, SDDM, Limine, i18n). It passes when the Screenshots section has an image, video, upload or link, or when the body has aNo visible change: <reason>line. That line is taken at the author's word.It's a nudge, not a gate. The check isn't required, so a red X never blocks a merge. Drafts and bot PRs are skipped, and editing the body re-runs it.
agents/skills/visual-verification.mdgets one paragraph so agents put their captures in that section.gh pr create --bodyskips the template, so agents wouldn't see it otherwise.Verification
Ran the check's script locally against sample PR bodies:
user-attachmentslink, markdown image, inline<img>: passNo visible change: ...line: passicon.png, or a plain link with no template: failThe workflow hasn't run on GitHub yet; the first PR touching those paths is its real test.
Screenshots
No visible change: adds a PR template and a CI check; nothing in Omarchy renders differently.