Skip to content

fix(github): Handle the requester's comment-only review like a change request - #4398

Merged
BYK merged 6 commits into
mainfrom
junior/pr-comment-only-feedback
Nov 26, 2026
Merged

BYK merged 6 commits into
mainfrom
junior/pr-comment-only-feedback

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

A comment-only review from the requester, such as a reply in a review thread, used to leave the review ask open. The PR kept asking for a review in the Inbox, and a clean PR could show "Ready to merge" while Junior still had to answer. Now Junior handles that review like a change request:

  • The review ask closes, and the PR does not show as ready to merge while Junior works on it (requesterFeedback in webhooks/pull-request-next-action.ts).
  • When Junior has marked every comment and the required checks pass, the review-again flow asks the requester again. The Inbox item says "Every comment on your review is handled." The feedback tool checks whether the reviewer is the requester. Other reviewers keep the old rule: only their latest change request counts.
  • Approval stands. A comment after the requester approves, with no new ask since, keeps the approval. The PR stays "Ready to merge", and an approved held draft keeps mark_ready. A change request always counts.
  • askStaysOpen is removed.

request_review (requestRequesterReview in tools/update-pull-request.ts) now asks only a requester who has not reviewed yet, or whose latest review was dismissed. The reviewer lookup reads comment-only reviews too. After a comment-only review, the review-again flow decides when to ask again. This supersedes #4394.

design/github.md gets two lines that BYK confirmed:

  • The comment-only line now says Junior handles a comment-only review like a change request: the ask closes while Junior works, and Junior asks again once it answers and the checks pass.
  • The limbo line now starts: "A ready Junior PR always has an Inbox ask (review or merge) or a pending GitHub review request for its requester."

This continues #4317, which merged before this change was pushed.

via @BYK.

--

View Session [Sentry]

sentry-junior Bot and others added 3 commits November 25, 2026 23:58
… request

A requester's comment-only review, such as a reply in a review thread,
now closes the review ask and keeps the pull request from showing as
ready to merge while Junior answers. Once Junior marks its comments and
the required checks pass, the review-again flow asks the requester again.

A comment after the requester approved, with no ask since, leaves the
approval in place, so the pull request stays ready to merge. A change
request always counts.

Co-Authored-By: BYK <[email protected]>
request_review asked the requester again after a comment-only review,
which skipped the review-again flow that owns that re-ask. It now asks
only a person with no review yet, or whose latest review was dismissed.
An approval stands when a comment follows it.

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot requested a review from BYK November 26, 2026 00:08
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 26, 2026 12:32am UTC

Request Review

@BYK
BYK enabled auto-merge (squash) November 26, 2026 00:11

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

A dismissed review resets the requester's decision, as an approval
stands: a comment-only review after it waits for a new ask. A ready pull
request is then in limbo, so Junior asks, and request_review asks too.
Before, such a comment counted as feedback that Junior might have
already answered, so nothing asked again.
…y-feedback

# Conflicts:
#	packages/junior-github/src/webhooks/pull-request-action.ts
#	packages/junior-github/tests/pull-request-review-again.test.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6fbe29c. Configure here.

@BYK
BYK merged commit 78f5187 into main Nov 26, 2026
56 checks passed
@BYK
BYK deleted the junior/pr-comment-only-feedback branch November 26, 2026 00:43
sentry-junior Bot added a commit that referenced this pull request Nov 26, 2026
Main's #4398 changed the review-again text, which this branch keeps in
pull-request-item.ts. The comment-only review test uses the item subject.

Main has two migration leaves (conversation_kind_root_thread_backfill and
conversation_event_message_role_seq_index). The Inbox item migrations move
after both, and the first one follows both leaves, so there is one leaf.

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 6fbe29ce Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant