Skip to content

PRLEMUR / GITHUB CODE REVIEW

Review the code.
Understand the change.

PRLemur checks GitHub pull requests for possible bugs and shows you where to look.

example / workspace-app Pull request #128Illustrative demo · synthetic data
app/api/exports/route.ts+12 −1
38export async function GET(request: Request) {
39 const user = await requireUser(request);
− 40 return exportWorkspace(user.workspaceId);
+ 40 const params = new URL(request.url).searchParams;
+ 41 const workspaceId = params.get('workspace');
+ 42 const format = params.get('format') ?? 'json';
+ 43
+ 44 if (!workspaceId || format !== 'json') {
+ 45 return Response.json({ error: 'Invalid export' }, { status: 400 });
+ 46 }
+ 47
+ 48 const records = await exportWorkspace(workspaceId);
+ 49 return Response.json({ records, requestedBy: user.id }, {
+ 50 headers: { 'Cache-Control': 'private, no-store' },
+ 51 });
52}
a71b8c2 Review at a specific commit
01

The workspace ID now comes from the request. Follow the call into the export query to check how access is enforced.

PRLemurPotential issue · High

Check membership before exporting a workspace

The handler checks that a user is signed in, but passes the requested workspace ID to a query with no membership filter. In this example, another workspace’s export could be returned.

CODE CHECKEDroute.ts:38–52exports.ts:18–25 · auth.ts:4–8
A check to run

Request an export using a workspace you don’t belong to. Expect 403 or 404.

Suggested test · not run
01 / INVESTIGATE

See the issue. Check the code.

Start with a summary, open an issue and read the changed code beside it.

PRLemur review guide with a change summary, prioritised findings, grouped files and the selected code diff.PRLemur review guide with a change summary, prioritised findings, grouped files and the selected code diff.
Actual product · Synthetic dataView full-size image
Try an interactive review example

Try this example: can a user export another team’s data?

example / workspace-app Pull request #128Illustrative demo · synthetic data
WORKSPACE-APP2 changed · 1 context file
↑ imported by route.ts
↑ imported by route.ts

Inspected static imports only. Dependencies beyond these files are not shown.

MODIFIED · a71b8c2

app/api/exports/route.ts

38export async function GET(request: Request) {
39 const user = await requireUser(request);
40 const params = new URL(request.url).searchParams;
41 const workspaceId = params.get('workspace');
42 const format = params.get('format') ?? 'json';
43
44 if (!workspaceId || format !== 'json') {
45 return Response.json({ error: 'Invalid export' }, { status: 400 });
46 }
47
48 const records = await exportWorkspace(workspaceId);
49 return Response.json({ records, requestedBy: user.id }, {
50 headers: { 'Cache-Control': 'private, no-store' },
51 });
52}

Imports exportWorkspace from lib/exports.ts and requireUser from lib/auth.ts.

02 / COORDINATE

Keep team reviews on track.

Assign reviews

Set an owner and due date. See when new code needs another pass.

Set review rules

Check a rule before applying it across repositories.

See team activity

See who changed access, settings or review assignments.

Explore team settings →
03 / COMPARE

Proposed pricing

Choose a plan by repository count and monthly reviews. Subscriptions are not open yet.

Developer

£19/ developer / month

  • 1 repository
  • Up to 10 review runs / month
  • Up to 5 PR replies / month
Compare Developer →

Pro

£49/ developer / month

  • 3 repositories
  • Up to 25 review runs / month
  • Up to 10 PR replies / month
Compare Pro →

Team

£99/ developer / month

  • 10 repositories
  • Up to 50 review runs / month
  • Up to 20 PR replies / month
Compare Team →

Prices exclude tax. Limits are shared across the workspace. Processing limits may pause reviews before you reach these counts. No automatic extra charges.

Compare features and annual billing

Before you get started

Can I connect my repository?

Not yet. Try the demo with sample code. Live reviews and subscriptions are not open yet.

What happens to my source code?

The demo uses sample code. Live reviews would send your code changes and relevant files to our AI provider. We’ll explain the provider and data handling before you connect a repository. Privacy notice →

Will PRLemur change my code?

Reviews suggest possible fixes and can be wrong. Your team decides what to change and merge.

What happens when I reach a limit?

Reviews pause when a usage limit is reached. There are no automatic overage charges. Adding seats does not increase the workspace’s shared limits.

Try a review before
you choose a plan.

Try demo