Skip to content

Auto-detect GitHub PR review requests and launch Claude Code review sessions #33

@dhilgaertner

Description

@dhilgaertner

Summary

Monitor the authenticated GitHub user for incoming pull request review requests and automatically set up Claude Code sessions to perform code reviews.

Problem

When someone requests your review on a GitHub PR, you have to manually clone/checkout the repo, read through the changes, and write review comments. Crow could automate this workflow.

Proposed Solution

PR Review Monitoring

  • Poll or webhook-listen for PRs where the current GitHub user has been requested as a reviewer
  • Display pending review requests in the Crow UI (possibly in the tickets/sessions area)

Automatic Review Session Setup

When a review request is detected:

  1. Clone the repo into a dedicated review directory: {devRoot}/crow-reviews/{repo-name}/
  2. Check out the correct branch for the PR
  3. Create a Crow session for the review
  4. Launch a Claude Code session with a code review skill

Code Review Skill

Create a new skill (e.g., /review-pr) that:

  • Reads the PR diff and description
  • Understands the context of the changes
  • Provides a thorough code review
  • Posts review comments back to the GitHub PR

Implementation Phases

Phase 1: Manual trigger — user clicks a button to review a specific PR
Phase 2: Automatic detection — poll GitHub API for review requests
Phase 3: Full automation — auto-clone, auto-session, auto-review with user approval gate

Notes

  • The crow-reviews folder keeps review clones separate from active development worktrees
  • Should clean up review clones after the PR is merged/closed
  • Consider rate limiting and notification preferences
  • Need to handle the case where the user already has the repo cloned elsewhere

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions