Repository navigation
feat(github): Set PR feedback reactions with github_updatePullRequestFeedback - #1781
Merged
Merged
Conversation
…Feedback Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: David Cramer <[email protected]>
The tool-error-classification check flags new plain Error throws in tool code. The four throws in updatePullRequestFeedback are HTTP failures and a missing bot-identity config check, matching the established system-failure convention already used by sibling GitHub tools (get-release, resolve-pull-request-review-thread, update-issue, update-pull-request).
Co-Authored-By: David Cramer <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes 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 a15bee3. Configure here.
Contributor
Author
There was a problem hiding this comment.
A few things need tightening before this lands:
createGitHubWebhookRoutereacts whenever normalization produces a PR comment event, even when no resource subscription or event task matches. That means every comment across the installation—including bot status comments—gets 👀. The requested contract is to react only when the event is delivered into a conversation. Add a provider-neutral preflight/match result at the resource-event boundary, then react only when there is a consumer.- The reaction tool filters by bot user, then deletes every non-target reaction from that bot. This can remove unrelated Junior reactions such as ❤️ or 🚀, despite the stated contract that it replaces only feedback-status reactions. Restrict stale reactions to
eyes,+1, and-1. - The reaction call is awaited before publishing, so a missing credential, permission error, rate limit, or transient GitHub failure drops the resource event entirely. This is visible in the current component failure: the webhook returns 500 because
GITHUB_APP_IDis absent instead of delivering the subscribed event. The reaction should be best-effort or otherwise must not prevent resource-event delivery; add coverage for that failure path.
Also add the promised race coverage where 👀 is listed but its DELETE returns 404, and the terminal reaction is still created.
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
dcramer
approved these changes
Sep 4, 2026
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.

Closes #1780.
Adds
github_updatePullRequestFeedbackso Junior can mark its own review-feedback progress with GitHub reactions instead of only text replies.repo,commentKind(conversation|review),commentId,status(reviewing|addressed|declined).reviewing → eyes,addressed → +1,declined → -1(GitHub has no checkmark reaction)./repos/{owner}/{repo}/issues/comments/{id}/reactions; inline review comments use/repos/{owner}/{repo}/pulls/comments/{id}/reactions— GitHub has no shared path.installation-writefor POST/DELETE on both reaction routes; reads already fall through the existing default-read grant.github_resolvePullRequestReviewThreadtool; this tool only owns the reaction.github-codeskill docs (SKILL.md,api-surface.md,troubleshooting-workarounds.md) to route agents to the new tool.Tests:
packages/junior-github/tests/update-pull-request-feedback.test.ts(fresh reaction, review-comment path, replace-without-touching-human-reaction, idempotent no-op).pnpm --filter @sentry/junior-githubvitest suite (106 tests) andtsc --noEmitpass;oxlintclean.Requested by David Cramer.
--
View Junior Session [Sentry]