Skip to content

Track pull request feedback with reactions #1780

Closed

Description

@sentry-junior

Junior can resolve review threads on bot-authored pull requests, but it cannot mark individual feedback comments while work is in progress or show how each item ended. Add one native, semantic feedback-status tool rather than exposing raw reaction mutations to the agent.

Current behavior

  • github_resolvePullRequestReviewThread resolves an inline review thread after it verifies that Junior authored the pull request (PR #1573).
  • No native tool manages reactions on pull request conversation comments or inline review comments.
  • GitHub exposes separate REST routes for issue comment and pull request review comment reactions. The supported values include eyes, +1, and -1, but not a checkmark.
  • Issue #359 already tracks reaction endpoints as part of the incomplete feedback API documentation. This issue tracks the workflow and native tool behavior.

Proposed feedback lifecycle

Expose a native tool such as github_updatePullRequestFeedback with:

  • repo
  • comment kind: pull request conversation comment or inline review comment
  • commentId
  • status: reviewing, addressed, or declined
  • optional threadId for inline review feedback

Map status to GitHub reactions:

  • reviewing → eyes
  • addressed → +1
  • declined → -1

A status transition must replace only reactions created by Junior. It must not remove reactions from people. Repeating the same transition must be safe and must not create duplicate state.

For addressed or declined, remove Junior's eyes reaction and add the terminal reaction. When threadId is present, also resolve the review thread with the same bot-authored pull request guard used by github_resolvePullRequestReviewThread. Conversation comments have no review thread to resolve.

Keep the GitHub route choice, reaction lookup and deletion, app identity check, permissions, and partial-failure reporting inside packages/junior-github. The agent should choose a feedback status, not coordinate reaction IDs and REST routes itself.

Requested by David Cramer.

--

View Junior Session [Sentry]

Activity

  1. added a commit that references this issue on Sep 4, 2026
    ae8aa27
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions