Repository navigation
ci: refuse a pull request that changes a screen and shows none of it - #1282
Merged
Merged
Conversation
Of the twenty pull requests that touched the web shell on 2026-10-16, seven carried an image; the rule stood in the template and the agent guide, and every pull request opened by hand under load skipped it. The policy lane now reads the body: a diff under web/src, site/ or design/ needs an https:// image a reviewer can open, or one line 스크린샷 없음: <reason> for the reviewer to judge. A body edit reruns the run without cancelling the lanes in progress.
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.
Summary
화면을 바꾼 PR이 스크린샷 없이 열리던 문제를 막습니다. 10-16에 머지된 UI 변경 PR 20개 중 이미지가 있는 것은 7개였고, 규칙은 템플릿과 AGENTS.md에 있었지만 손으로 연 PR은 그냥 넘어갔습니다.
verify의 policy 검사가 PR 본문을 읽습니다. diff가web/src,site/,design/을 건드리면(테스트와 스냅샷 제외) 리뷰어가 열 수 있는https://이미지가 있거나,스크린샷 없음: <이유>한 줄이 있어야 통과합니다. 워크스테이션 경로,file://,raw.githubusercontent.com링크는 이미지로 치지 않습니다.edited) 검사가 다시 돕니다. 진행 중인 런은 취소하지 않고 기다리며, 지난 초록 런이 서 있으면 policy만 돕니다.prd_ship.js screenshots --no-run, sasu PR Clarify workspace navigation and surface agent and pull request status #32)과 예외 줄을 적었고, CONTRIBUTING의 CI gates 표와 PR 템플릿, TESTING.md의 lanes 절에 같은 내용을 넣었습니다.Review
스크린샷 없음: <이유>를 둘지. 검사가 막는 것은 말없이 빼는 것이고, 이유가 적힌 생략은 리뷰어가 판단합니다. 이 줄이 없으면 CI 포화로 후보 빌드를 못 띄우는 날 PR 자체가 막힙니다..github/workflows/pr.yml-edited트리거와cancel-in-progress조건, policy job의fetch-depth: 2. 본문 검사는 Structural checks 블록 밖에 두어premerge-check.py의 parity 테스트가 요구하지 않게 했습니다(머지 결과에는 본문이 없음).edited는 제목 변경에도 런을 시작합니다. 지난 초록 런이 있으면 policy 한 job이라 비용은 작은데, 그래도 싫으시면 별도 워크플로로 뺄 수 있습니다(브랜치 보호에 required check 추가 필요).Evidence
python3 -m unittest discover -s scripts/tests전체 통과(398개, 새test_pr_screenshots.py9개 포함: 이미지 없음 실패, https 이미지 통과, 로컬 경로와 raw 링크 실패, 예외 줄 통과, 이유 없는 예외 실패, 템플릿 주석 무시, 테스트 파일만 바뀐 경우 통과). 이 브랜치 자체의 diff에 검사를 돌려 "No screen changed"로 통과.edited이벤트에서의 실제 런 동작(취소 안 함, policy만)은 이 PR의 본문을 고쳐 보는 것으로 확인할 수 있어서, 열린 뒤 한 번 고쳐 결과를 적겠습니다.