Add PR-ready change review reports#32
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a12c9cb13f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| export function changeReviewReport(root?: string, limit?: number, dbPath?: string) { | ||
| return buildChangeReviewReport(detectChanges(root, limit, dbPath)); |
There was a problem hiding this comment.
Default the report database to the selected repo
When review-report / change_review_report is run with a root outside the current working directory and no explicit --db/dbPath, this passes undefined through to detectChanges, so withStore opens the current directory's default .repolens/memory.db instead of the selected repo's default database. A common flow like repolens-mcp index /tmp/app followed by repolens-mcp review-report /tmp/app from another directory will therefore generate a report against the wrong graph or mark everything unindexed; default the DB to defaultDbPath(root) when a root is provided and no DB is supplied.
Useful? React with 👍 / 👎.
a12c9cb to
bf38c44
Compare
bf38c44 to
5e8a2da
Compare
Summary
review-report/pr-reportCLI output for PR-ready Markdown or JSON change-impact reports.change_review_reportMCP tool so agents can generate the same review artifact from graph context.detect_changesprecision by asking Git for all untracked files, so security-sensitive paths such as workflow files are reported at file granularity.docs/agent-guide.md,docs/research-notes.md, andllms.txt.Validation
npm run verifynpm run test:skip-gatenpm run package:checknpm run installer:auditnpm pack --dry-runnpm audit --omit=dev/private/tmp/repolens-pr-review.db, generated Markdown and JSON review reports, and confirmed Markdown starts with# RepoLens Change ReviewNotes