GitHub App · GitLab webhook · inline diff comments

Code review before your reviewer opens the tab

Commitloom reads every pull request the moment it opens — catching the off-by-one, the missing null check, the test nobody updated — then writes the summary your reviewer would have written.

feat: add retry logic to payment handler
Overview Files changed (3) Checks
payment/handler.go
44 func ProcessPayment(ctx context.Context, req *PayReq) error {
45 if req.Amount <= 0 { return ErrInvalidAmount }
46 - result := gateway.Charge(req.Amount, req.Card)
47 + result := gateway.Charge(req.Amount, req.Card)
48 + if result == nil { return ErrNilResult }
49 return result.Error
payment/retry.go
1 + func withRetry(fn func() error, n int) error {
2 + for i := 0; i < n; i++ {
3 + if err := fn(); err == nil { return nil }
4 + }
5 + return ErrMaxRetries
Warning retry.go:3

Edge case: when fn() panics, the loop exits silently. Consider adding a recover wrapper before retrying.

Issue handler.go:47

Missing null check on req.Card — if the field is omitted the gateway call will panic rather than return a typed error.

Commitloom Summary
Adds retry logic for transient gateway failures and a nil-result guard. Risk: missing Card null check and unrecovered panics in withRetry. Suggest reviewing handler.go:47 first.
Trusted by engineering teams at
Ironveil Systems Stackdrift Labs Crestpath Engineering Lunaris Cloud Mossblock Inc.
What we catch

The bugs that survive human review

Not style violations. Not linting. The class of bugs that survives unit tests because the test never covered the edge case, and survives human review because the reviewer was 400 lines in.

Logic errors

Off-by-ones, boundary conditions, subtle logic inversions that survive unit tests because the test covers the happy path.

Missing coverage

Tests that weren't updated when the function signature changed. Coverage gaps that only show at runtime under edge inputs.

Nullability gaps

Unchecked nulls, unhandled promise rejections, silent return-undefined paths that become production incidents.

Stale comments

TODO comments, outdated inline docs, references to deleted code that mislead the next engineer.

PR summaries

The summary your reviewer would have written

Commitloom reads the full diff context — including surrounding function bodies and import changes — and writes a summary that tells the reviewer what changed, why it matters, and where the riskiest lines are. The reviewer gets this before they read a single line of diff.

  • What changed and why
  • Risk areas flagged with line references
  • Suggested review order for large diffs
Edit pull request · GitHub
Generated by Commitloom

## What changed

Adds retry logic for gateway charge calls with configurable backoff. Introduces withRetry(fn, n) helper in payment/retry.go.

## Risk areas

handler.go:47 — req.Card unchecked before gateway call

retry.go:3 — panic in fn() exits loop silently

## Suggested review order

Start with retry.go (new logic), then handler.go integration points.

How it works

Up and reviewing in under two minutes

01

Connect your repo

Install the Commitloom GitHub App or connect via GitLab webhook in two clicks. No code changes, no CI configuration, no service account to create.

02

Open a PR

Every new pull request fires a webhook. Commitloom fetches the diff — not the full repo — and starts analysis within seconds of the PR opening.

03

Review smarter

Inline comments land on specific diff lines with severity labels (Warning / Issue / Suggestion). The PR description is pre-filled with a structured summary. Your reviewer starts from a higher baseline with less context-gathering to do.

See the full walkthrough
Works with your stack
From engineering teams

From engineers who use it daily

We used to lose 40 minutes per PR to back-and-forth on obvious issues. Commitloom handles those before we even start.

Alex K.
Staff Engineer at a fintech startup

The generated summaries alone saved our EM from reading every single diff before standup. That's two hours back per week.

Dana M.
Engineering Manager at a SaaS company

Caught a null dereference in production-bound code that slipped two human reviewers. That alone paid for a year.

Marco T.
Senior Backend Engineer at a logistics platform
Pricing

Simple pricing, any team size

One developer, forever free. Teams from $29/seat. No credit card to start.

Starter
$ 0
forever free
For individual contributors and open-source projects. Up to 50 PR reviews / month.
  • Inline AI comments
  • Automated PR summary
  • GitHub integration
Start free
Scale
$ 79
per developer / month
For larger orgs with compliance, SSO, and audit log needs.
  • Everything in Team
  • SSO / SAML
  • Audit logs
Talk to founder
See full pricing and comparison

Your next PR will review itself.

Set up in two minutes. No credit card. Cancel any time.