Repository navigation
feat(github): Say when a PR comment asks the requester a question - #4357
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sentry-junior
Bot
force-pushed
the
junior/pr-action-question-ask
branch
from
November 25, 2026 20:52
2b5e96c to
96e6708
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit be4b909. Configure here.
BYK
approved these changes
Nov 25, 2026
sentry-junior
Bot
force-pushed
the
junior/pr-action-question-ask
branch
from
November 25, 2026 22:28
be4b909 to
f52e2af
Compare
sentry-junior
Bot
force-pushed
the
junior/pr-action-question-ask
branch
from
November 25, 2026 22:42
f52e2af to
165e55f
Compare
sentry-junior
Bot
force-pushed
the
junior/pr-action-question-ask
branch
from
November 25, 2026 23:13
165e55f to
44d5e79
Compare
sentry-junior
Bot
force-pushed
the
junior/pr-action-question-ask
branch
from
November 25, 2026 23:40
44d5e79 to
7e86b12
Compare
A PR comment with asks_requester asks the requester for a review, and the Inbox showed the general review text. The comment tool now marks the review ask with the question reason, and the item says that a comment asks them a question. A comment-only review keeps the review item open, so a new question counts as a change and updates the open item. The mark is dropped once the item shows it. Co-Authored-By: BYK <[email protected]>
When Junior asks the requester a question in a PR comment, the Inbox item says so instead of the general review text. Co-Authored-By: BYK <[email protected]>
When GitHub already asks the requester for a review, asking again sends no review request webhook, so the open item kept its general text. The tool now writes the question mark before it posts the comment, and the comment's own webhook syncs the item while that mark waits. A comment that GitHub does not post drops the mark. The item and close text moves to pull-request-action-text.ts, which keeps pull-request-action.ts under the file-length limit. Co-Authored-By: BYK <[email protected]>
GitHub records no new review request for a reviewer that it already asks. So after the requester replied to their change request, a question from Junior left the item closed: their reply still came after GitHub's last ask. The tool now removes and adds such a request, so GitHub records a new ask and sends its review request webhook every time. That webhook shows the question on an open item too, so the sync on Junior's own comment, and the mark before the comment, are gone. Co-Authored-By: BYK <[email protected]>
Removing the requester's review request starts a sync that can close the item, and that sync dropped the question mark, so the review request that followed showed the general text. The mark now drops only when a review item shows it. A failed review request after that removal left the requester unasked, though GitHub asked them before. A rate limit or server error now gets one more try. Co-Authored-By: BYK <[email protected]>
BYK
force-pushed
the
junior/pr-action-question-ask
branch
from
November 25, 2026 23:56
a355733 to
43c403b
Compare
23 tasks done
This branch was successfully deployed
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.

When Junior asks the requester a question in a PR comment (
github_commentOnPullRequestwithasks_requester, from #4305), the Inbox item shows the general "GitHub asks you to review #N." The requester can't tell from the item that a question waits on them.Changes
pull-request-review-again.ts: the review-asked mark gets an optionalreason(handledorquestion), andGitHubReviewAskReasonaddsquestion. An unset reason still meanshandled, so the feedback tool's marks keep working.comment-on-pull-request.ts: before it asks for the review on GitHub, the tool writes the mark withreason: "question", the same way the feedback tool marks a review-again ask. GitHub records no new review request for a reviewer that it already asks, so a requester who replied after GitHub's last ask would still count as acting last. When GitHub already asks the requester, the tool removes the request and adds it again, so GitHub records a new ask and sends itsreview_requestedwebhook. If the request fails after that removal with a rate limit or server error, the tool tries it once more.pull-request-action.ts:askReasonreturns the mark's reason, and the item text forquestionis "A comment asks you a question."pull-request-action-text.ts: the item and close text moves here frompull-request-action.ts, which keeps that file under the file-length limit.No new table: the mark is the existing 1-hour state key, and it only has to outlive GitHub's
review_requestedwebhook.The item has no link to the comment. Its URL is the PR, which the dashboard shows as one card. The text can't name the bot because the
no-hardcoded-bot-namerule forbids it: each install configures the bot name.Design
design/github.mdgets a rule next to the hand-back rule from #4305: "When Junior asks the requester a question in a PR comment, it asks for their review on GitHub, and the Inbox says that Junior asked them a question."via @BYK.
--
View Session [Sentry]