Repository navigation
Stop comment-only follow-ups from looping and recognise marker-only reviews (deep-review 1.2.1) - #2
Merged
Conversation
…nise marker-only reviews A comment-only verdict at the current head re-triggered a follow-up on every scan whenever the required checks already passed, so the automatic pass kept posting comment-only reviews. It now follows up only when a required check finished after that review. A comment-only review with no inline findings was never treated as a deep review, so its checks-now-pass follow-up never ran. Review bodies now end with a hidden <!-- deep-review-verdict: ... --> marker that the scanner reads, with the old state and wording rules kept for earlier reviews. The required_checks_pass and evaluate signatures are unchanged, so callers that override them keep working. Release 1.2.1.
…llup gh pr checks reports a zero completedAt for commit statuses, so the follow-up never fired in repos whose required checks are statuses. One GraphQL statusCheckRollup read through gh() now gives both the pass state and the finish time: check runs finish at completedAt, statuses at createdAt, and only the newest run of each check counts, as in gh. A read that fails, sees another head, or can't see every check counts as pending, so that PR is retried without stalling the scan. The follow-up is now judged against the latest review that carries a verdict marker, and a body's closing marker wins over a quoted one.
…endent verdict Closes the window where a check re-run passes between the verdict and the submit, which would leave a comment-only review with no follow-up. The changelog describes what 1.2.1 actually does.
The matrix only covered the oldest and newest versions. It now lists every supported release, so a behaviour change in any of them fails CI. AGENTS.md, CONTRIBUTING.md and the plugin README now state the supported range.
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
The automatic pass's scanner (
plugins/deep-review/scripts/pending_reviews.py) had two bugs.Fix
Follow up only on new check results. A comment-only verdict now triggers a follow-up only once a required check finishes after that review.
Where finish times come from: one GraphQL
statusCheckRollupread, made through the scanner'sgh()helper.completedAt, commit statuses atcreatedAt.gh pr checksreports a zero time for statuses, which is why it can't be used.SUCCESSpasses, matchinggh pr checks.Verdict marker: every review body now ends with a hidden
<!-- deep-review-verdict: approve|ready|changes|comment -->.Pre-submit re-read: before posting a verdict that depends on the required checks, the review skill now reads them again.
Compatibility:
required_checks_pass(repo, number)andevaluate(repo, me, pr)keep their signatures, so external callers that override them keep working.CI matrix: the unit tests now run on every supported Python (3.9, 3.10, 3.11, 3.12, 3.13, 3.14 and 3.15), not just the oldest and newest.
Releases deep-review 1.2.1 when merged.
Checks
Run locally on the final tree:
claude plugin validategh pr checkson pass or failA pre-PR deep review in fix mode, with Claude and Codex finders, found 1 Medium issue: required commit statuses never triggered the follow-up. It also found 10 Low or Nit issues. All are fixed here.
After merge
The VM's automatic pass has to be moved to the new tag: check out
deep-review--v1.2.1, runcodex plugin add, and update the two pinned runner paths.