Skip to content

feat: incorporate PR review comments into follow-up review context #443

@captainsafia

Description

@captainsafia

Problem

When the review bot performs a follow-up review on a PR, it does not incorporate the author's responses to its initial review comments as context. This leads to the bot repeating findings that the author has already addressed or refuted in the comment thread.

Example

On warpdotdev/warp-server#10967, the bot left an initial review with a finding. The PR author replied that the finding was not valid. When a follow-up review was requested, the bot repeated the same invalid finding — indicating it was not aware of the prior conversation.

Expected Behavior

When performing a follow-up review, the bot should be given the existing PR review comments (both its own and the author's replies) as context. This would allow it to:

  1. Avoid repeating findings that have already been discussed and dismissed
  2. Incorporate feedback from the author to improve subsequent reviews
  3. Focus on new or unresolved issues rather than re-raising resolved ones

Suggested Approach

Include the existing PR comment threads (review comments + replies) in the context provided to the review agent when it performs a follow-up review pass. This could be done by fetching the PR's review comments via the GitHub API and injecting them into the agent's prompt alongside the diff and PR description.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowGitHub workflows, Python automation, or Oz integrationenhancementNew feature or requestrepro:highThe report looks highly reproducible from the available informationtriagedInitial Oz triage has been completed for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions