Skip to content

PR sync may miss changes requested on an already approved PR #247

Closed as not planned

Description

@bRRRITSCOLD

What

#246 re-fetches unsettled open PRs on each sync (spec §8): checks pending or none, or review review_required / changes_requested. An approved PR with finished checks counts as settled. If a reviewer then requests changes, and GitHub doesn't bump the PR's updatedAt for a review, the change never shows up and no "Changes requested" notification is sent until something else updates the PR.

Why it's open

There's no GitHub documentation on whether a submitted review bumps updatedAt (the updated: search qualifier). If it does, this isn't a problem at all.

Next step

Check on a real PR: note updatedAt, submit a review with no push, and read updatedAt again.

  • If it moves, nothing needs doing. Drop changes_requested / review_required from unsettled in prsync/mod.rs too, since the search already catches reviews, and update spec §8.
  • If it doesn't move, count approved as unsettled as well (bounded by the age cutoff), and note the extra request per 25 PRs in §8.

🤖 Generated with Claude Code

Activity

  1. bRRRITSCOLD commented on Nov 17, 2026

    @bRRRITSCOLD
    OwnerAuthor

    Checked read-only with gh api (no PR written to). A submitted review bumps a PR's updatedAt, to the second, and the updated: search qualifier the incremental sync uses finds the PR in that second. So a change requested on an approved PR comes back in the next incremental search; no code change needed.

    Owner's repos: nothing to tell from

    Across agentdeck, ts-packages, rust-packages, personal-ai, logalot, personal-infra, compainy and pythia, only one PR has a review at all: bRRRITSCOLD/ts-packages#82, a COMMENTED review at 2026-11-06T16:09:37Z, after the last commit (14:54:01Z). The merge followed at 16:54:01Z, so updated_at (16:54:03Z) can't say whether the review bumped it.

    Public PRs whose last event is a review

    GraphQL timelineItems(last: 2) on the 50 most recently updated open PRs with review:changes_requested in microsoft/vscode, nodejs/node and rust-lang/rust, plus any open PR in kubernetes/kubernetes: of the 46 whose last timeline item is a PullRequestReview, none has updatedAt before the review's submittedAt, and 18 match it within 2 s (the rest moved later on something outside the timeline: an edit, a bot). REST GET /repos/{o}/{r}/pulls/{n} gives the same updated_at:

    PR last commit last review updated_at (REST = GraphQL)
    microsoft/vscode#348579 16:33:10 CHANGES_REQUESTED 2026-11-16T17:42:16Z 2026-11-16T17:42:17Z
    nodejs/node#66569 2026-10-12 CHANGES_REQUESTED 2026-11-05T23:13:41Z 2026-11-05T23:13:41Z
    microsoft/vscode#306133 2026-04-27 CHANGES_REQUESTED 2026-11-13T04:48:46Z 2026-11-13T04:48:46Z
    kubernetes/kubernetes#142854 02:25:56 COMMENTED 2026-11-17T04:53:17Z 2026-11-17T04:53:18Z

    This issue's exact case: approved, then changes requested, nothing after

    PR reviews updated_at last commit
    microsoft/vscode#345416 APPROVED 2026-11-03T08:44:20Z, then CHANGES_REQUESTED 09:07:51Z 2026-11-03T09:07:51Z 08:17:57
    microsoft/vscode#308430 APPROVED ×3 on 2026-11-03, COMMENTED 11-10, CHANGES_REQUESTED 2026-11-12T00:11:40Z 2026-11-12T00:11:40Z 2026-04-08

    And the search qualifier itself: repo:microsoft/vscode is:pr updated:2026-11-03T09:07:51Z..2026-11-03T09:07:52Z returns exactly #345416, and …updated:2026-11-12T00:11:40Z..2026-11-12T00:11:41Z exactly #308430.

    Outcome

    🤖 Generated with Claude Code

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