03 / Case study
PR Mentor.
Revolver repository
An educational PR reviewer that tells students what to change, why it matters, and where to learn more.
- Focus
- Code review / Education
- Development status
- CLI and GitHub Action available
- Source reviewed
01 / Overview
The problem.
New developers can receive review comments that name a problem without explaining the engineering concept behind it.
- Who it serves
- Students working with pull requests and instructors reviewing recurring patterns.
- The approach
- PR Mentor combines static findings, test-gap heuristics and an optional Claude pass into structured educational feedback. A separate instructor dashboard imports CLI reports.
- My verified contribution
- Aswin-Times owns the Revolver repository. Attributed commits include the report dashboard, browser-side imports, and finding deduplication.
Technology stack
- TypeScript
- Node.js
- pnpm
- Zod
- Claude
- Vitest
- GitHub Actions
02 / Architecture
How it works.
Select a step to see its responsibility.
PR diff
The CLI or GitHub Action supplies a diff and limited repository context.
The instructor dashboard reads manually imported JSON. A separate GitHub App is planned.
03 / Implementation
What’s built.
- Diff parsing and line-aware findings
- Optional Semgrep, Gitleaks, Ruff and ESLint checks
- Test-gap detection
- CLI Markdown and JSON reports
- GitHub Action summary and inline review
- Instructor dashboard with local browser storage
Engineering decisions
Keep the review engine portable
The review core is independent of GitHub. Thin adapters provide changes and format the result for each audience.
Give each finding a teaching purpose
The schema carries an explanation, improvement and learning context alongside severity and line information.
04 / Evidence & limits
What the source supports.
The roadmap marks milestones 1–5 complete and documents an evaluation harness with 16 fixture PRs. Dashboard tests and review-pipeline tests are visible in source.
Security, reliability and known limits
- The GitHub App and per-repository App configuration are planned.
- Dashboard imports are manual and stay in the current browser.
- The Claude evaluation baseline is pending.
What’s next
Run the optional-model baseline, then evaluate the planned GitHub App separately from the existing Action.
05 / Source notes