mergebrake
v0.0.11
Published
Catch database-breaking PRs before merge by mapping schema changes to impacted app code.
Maintainers
Readme
MergeBrake
MergeBrake catches database-breaking pull requests before merge. It maps schema changes to the application code they will break, detects AI-generated PR signals, and gives reviewers a safe rollout plan instead of a generic warning.
npx mergebrake scan "prisma/migrations/**/migration.sql" \
--commits ./.git/COMMIT_EDITMSGFor PR-style checks, scan only migration files changed since the base branch:
npx mergebrake scan "prisma/migrations/**/migration.sql" \
--changed-since origin/mainFor deploy-order checks, compare the PR checkout with a base-branch checkout:
npx mergebrake scan "prisma/migrations/**/migration.sql" \
--base-repo ../my-app-baseOutput formats:
terminalfor local developmentmarkdownfor PR commentsgithubfor GitHub Actions annotationsjsonfor custom tooling
See the project README for examples, rules, and CI setup: https://github.com/mergebrake/mergebrake
