Repository navigation
ref(github): Share one feedback reaction flow for every comment kind - #3136
Merged
Merged
Conversation
Conversation comments, inline review comments, and review bodies now go through the same list, replace, and add steps, with only the GitHub API calls differing. Review bodies find Junior's reactions by the bot's id, like REST comments, instead of viewerHasReacted. Drop reaction_id from the tool output, because GraphQL gives no id for an existing reaction, and drop the tool error baseline entry that the GraphQL helper needed. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Nov 11, 2026
Contributor
|
17 screenshot changes — 17 changed · 0 added · 0 removed Review screenshots in Frameshift Show 11 more changed screenshots |
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.
Cleanup for #3126, which merged before this pass landed.
Problem: #3126 gave review bodies their own reaction path. It duplicated the REST list, replace, and add logic in a GraphQL helper. It found Junior's reactions through
viewerHasReacted, which depends on the credential that egress picks, while REST comments match the bot user id. It also madereaction_idoptional and added a tool error baseline entry for the new GraphQL throw.Fix:
github_updatePullRequestFeedbackruns one flow for every comment kind: list the bot's reactions, remove its stale state reaction, and add the new one. Only the GitHub calls differ: REST for conversation and inline review comments, GraphQL for review bodies. The existing lookup, removal, and creation errors cover both, so the baseline entry is gone.reactionGroups.reactorswithBot.databaseId, the same bot user id that REST comments use.reaction_id. GraphQL gives no id for an existing reaction, and no caller reads it.github-plugin.test.tsthat the event automation snapshot already covers.Remaining risk: the GraphQL calls are tested only against fakes.
Bot.databaseIdshould equal the REST bot user id, but no live call has checked this.via @dcramer.
--
View Session [Sentry]