[ Blocks PR Review ]

Ship with confidence.
Reviewed your way.

Start with a reviewer that works on day one, then let teams layer on their own concerns and data sources.

Verify Stripe webhooks before processing #1931
Opendana-ruiz wants to merge 7 commits into main from dana/stripe-raw-body
blocksbotrequested changes · reviewed with Claude Code2 minutes ago

Moves signature verification to the raw body and adds replay protection. One issue blocks merge: the signature is still read after express.json() has parsed the request.

9
Webhook signature is checked after the body is parsed
api/webhooks/stripe.ts:88
7
Index is created without CONCURRENTLY on a 40M row table
db/migrations/0142_orders.sql:12
6
Retry loop has no upper bound when the provider returns 429
lib/retry.ts:31
3
Prefer the shared currency formatter
components/order-row.tsx:54
Some checks haven’t completed yet
2 in progress and 1 successful checks
Blocks PR ReviewReviewing…Details
CI / testSuccessful in 3m 12sDetails
CI / e2eIn progressDetails
api/webhooks/stripe.ts
86router.post("/stripe",
87 express.json(),
88 verifySignature(secret),
blocksbot2 minutes ago9

Stripe signs the raw bytes. After json() the body is re-serialised, so every real webhook fails verification. Use express.raw() on this route.

Suggested change
87- express.json(),
87+ express.raw({ type: "application/json" }),
Commit suggestion@blocks fix it

Built for how teams actually review.

Fewer, better comments, on your rules, wherever your code lives.

.blocks/review.md
## Always flag
- Migrations without CONCURRENTLY
- Webhooks that skip signature checks
- Secrets in logs
## Ignore
- Generated code in src/gen/
Read on every review

Rules. Your standards, in plain English.

Write what to always flag and what to ignore. Blocks reads it on every review.

[ Data sources ]

Connect the tools your reviews depend on.

Add Jira, Confluence, Notion, Databricks, New Relic, Jam and more, so the reviewer can check each change against the tools and data your team already uses.

Jira
Confluence
Notion
Databricks
New Relic
Jam
Sentry
Linear

Four steps to your first review.

01

Connect

GitHub, GitLab or Bitbucket, cloud or self-hosted. Every repository or just a few.

02

Pick the reviewer

Any agent and model. Add subagents for security, migrations or anything else.

03

Set your bar

Write your rules in plain English and pick a severity threshold. Below it, nothing is posted.

04

Fix with a reply

Reply @blocks fix on any finding and an agent pushes the fix to the same branch.

[ Automations ]

Need more than a review?

Add your own checks as automations. Verify a pull request against its Linear or Jira ticket, or write the instructions for a check only your team needs.

Explore automations

Pull request

Opened or updated

Requirements checkCodex
CI check

Verify Linear requirements

Checks pull request changes against the linked Linear issue's requirements before merge.

Review your next pull request with Blocks.

Connect a repository and the next pull request gets a review.

Blocks PR Review – Ship with confidence, reviewed your way