Skip to content

pullfrog-approval is not posted when a re-review ends without a review, which blocks a required check #107

Closed

Description

@OmerFarukOruc

Summary

With pullfrog-approval required by branch protection, a re-review that ends with report_progress instead of a review leaves the new head with no pullfrog-approval check at all, so the pull request cannot merge until someone comments @pullfrog review.

Where it comes from

utils/statusChecks.ts posts pullfrog-approval only when toolState.approval is set, and that field is set by create_pull_request_review in mcp/review.ts. The IncrementalReview checklist in modes.ts tells the agent to call report_progress and submit no review when the new commits are non-substantive ("formatting-only, import reordering, comment tweaks"). On that path the run succeeds, approval is undefined, and the check is skipped:

// utils/statusChecks.ts
if (!needsApprovalCheck || !approval) return;

The header comment anticipates the gap for crashed runs ("leave pullfrog-approval absent, the next run resolves it"), but on a clean no-review re-review no next run is coming: the pullfrog run check is success, so nothing is pending, and the head stays without an approval verdict.

Reproduction

  1. Repo with review.re-review on, review.approval-check on, and pullfrog-approval in the base branch's required status checks.
  2. Open a PR; Pullfrog reviews it and posts pullfrog-approval on head A.
  3. Push a commit that only reorders imports. The re-review run finishes with report_progress ("No new issues. Changes since last review are formatting-only.").
  4. Head B has pullfrog: success and no pullfrog-approval. The merge button waits for a check that nothing will post.

Observed on OmerFarukOruc/statuslantern-scraper with Pullfrog 0.1.95 (pullfrog@^0.1.80 via the SHA-pinned action).

Ask

When a Review or IncrementalReview run completes successfully without create_pull_request_review, recompute the verdict from the PR's outstanding Pullfrog threads (utils/outstandingThreads.ts already does this for the approve side) and post pullfrog-approval on the current head with that result. A formatting-only push should carry the prior verdict forward rather than drop it.

Activity

  1. pullfrog commented on Oct 3, 2026

    @pullfrog
    Contributor

    I opened #108 to fix this. Now, when a Review or IncrementalReview run succeeds without submitting a review, Pullfrog posts pullfrog-approval on the commit it checked out instead of leaving the check missing. The verdict comes from the most recent earlier pullfrog-approval on that PR.

    How the verdict is chosen:

    • Earlier success: stays a success only if no Pullfrog review thread is still open; otherwise it becomes a failure.
    • Earlier failure: stays a failure.
    • No earlier verdict: nothing is posted, same as today.

    Where this differs from the issue's ask: the issue asks to recompute the verdict from open threads alone. That would let a formatting-only push turn a red check green when the agent never approved. For example, an earlier "would not approve" review that raised its findings only in the review body leaves no thread behind. So open threads can block an approval but never grant one. The trade-off: a red verdict whose threads were later resolved by hand stays red until the next full review.

    The 12 new tests in utils/statusChecks.test.ts and pnpm typecheck pass. I didn't run the full test suite.

    Pullfrog  | View workflow run | via Pullfrog | Using claude-opus-5-5 (free via Pullfrog for OSS) | 𝕏

  2. colinhacks commented on Oct 5, 2026

    @colinhacks
    Member

    A fix is merged and ships in the next release. A re-review that finds nothing new to review will carry the previous pullfrog-approval verdict to the new head, and an approval carries only while no Pullfrog thread is open.

  3. colinhacks commented on Oct 20, 2026

    @colinhacks
    Member

    The fix shipped in 0.1.98: a re-review that ends without a review now carries the previous pullfrog-approval verdict to the new head, so a required check no longer leaves the PR stuck. An approval carries forward only while no Pullfrog review thread is open.

    0.1.99, released today, adds the matching fix for the GitHub review itself: when a push dismisses Pullfrog's approval and none of its findings is open, the re-review approves again instead of skipping.

    Reopen this if a head is still left without the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions