Skip to content

PR status: do not write "Ready" or "Needs you" on a freshly pushed head before its checks exist #3590

Closed

Description

@integry

Problem

Right after a commit is pushed, before GitHub has created any check run for the new head, the status is computed as if checks had completed with nothing to report. The PR is shown as ready (or as needing you with the pre-fix review score), and flips back to working seconds later. This also causes most of the title rename churn.

Observed:

Expected

A review score alone never makes a PR ready, and the status must reflect the current head: after a push the PR is working (waiting for CI) until checks for that head have been reported and completed. A review score given for an older head must not produce ⚠️ or ✅ for the new head while its checks are outstanding.

Acceptance criteria

Implementation

See packages/core/src/services/pullRequestStatus/pullRequestStatus.ts (facts.checks.pending > 0 → working, !facts.checks.complete → needs_attention, otherwise ready) and how checks and complete are filled in pullRequestStatusFacts.ts when GitHub returns zero check runs for the head. Distinguish "no checks reported yet for a new head" from "this repository has no checks". The title debounce lives in pullRequestStatusTitle.ts / pullRequestStatusSync.ts.

Notes

ProPR runs on SQLite only: do not add code or tests for other databases. Do not add a repository setting. Keep GitHub API calls per update no higher than today.

Activity

  1. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3590/claude-opus-5-5-pr-status-do-not-write-re-20261117-0157-xk1
    • Base Branch: 3589-epic-0-9-y3w
    • Worktree: issue-3590-20261117-0157-claude-opus-5-5-xk1

    🔍 Track Task Execution

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions