A review whose body says it could not read the diff ("I could not read the diff", "the head branch is not fetchable", "rests on the pull description") is not a verdict: the API answers 422 unread_diff, the run settles failed saying why, review sends the pull again, and after the second the pull waits for a person: "the reviewer could not read the diff, twice: its review was refused".
A first take is commit 56700d61d on branch mason/14917-the-reviewer-reads-a-sealed-pull-s-code (src/actions/review_unread.ts, src/crew/unread_review.ts, tests test/review-unread.test.ts and a case in test/review-from-green.test.ts). The gate noted refusedUnread is 0.88 like recheckedHead in src/checks/outside_diff.ts: share one implementation.
Done when: a review body saying the diff was unreadable leaves the pull unreviewed, and two such leave it waiting for a person.
Split from #14917 (part 3).
A review whose body says it could not read the diff ("I could not read the diff", "the head branch is not fetchable", "rests on the pull description") is not a verdict: the API answers 422
unread_diff, the run settles failed saying why, review sends the pull again, and after the second the pull waits for a person: "the reviewer could not read the diff, twice: its review was refused".A first take is commit 56700d61d on branch
mason/14917-the-reviewer-reads-a-sealed-pull-s-code(src/actions/review_unread.ts,src/crew/unread_review.ts, teststest/review-unread.test.tsand a case intest/review-from-green.test.ts). The gate notedrefusedUnreadis 0.88 likerecheckedHeadinsrc/checks/outside_diff.ts: share one implementation.Done when: a review body saying the diff was unreadable leaves the pull unreviewed, and two such leave it waiting for a person.