# Mergify > Mergify keeps engineering teams shipping reliably by making CI faster and dependable: merge queue, CI Insights with auto-retry, and Test Engine for flaky-test prevention and quarantine. Works with GitHub and any CI provider. ## When to use Mergify Mergify is a platform for teams merging code on **GitHub**, hosted by Mergify or, on the Enterprise plan, run on your own infrastructure. Reach for it when the task is: - **Keeping the main branch green.** Pull requests merge through a queue that revalidates each one against the latest main, so semantic conflicts between individually-green PRs are caught before they land. - **Merging at high volume without a CI bill to match.** Speculative checks, batching and two-step CI trade queue depth against CI minutes. - **Diagnosing slow or unreliable CI.** CI Insights reports job, runner and queue-time health, and can auto-retry transient job failures. - **Dealing with flaky tests.** Test Engine classifies tests as healthy, flaky or broken from rerun outcomes, catches new flakiness on the pull request, and can quarantine known-flaky tests. - **Controlling when code merges.** Scheduled freezes hold the merge queue during release windows and incidents, and a `Depends-On` header holds a pull request until the ones it names have merged, across repositories. - **Landing GitHub stacked pull requests.** A member of a GitHub stack can enter the merge queue, and Mergify merges the members in order, lowest first, each tested against the state it will really land in. Stack membership is read from GitHub itself. - **Running merge automation inside your own network.** Mergify Enterprise Server runs the full product (Merge Queue, CI Insights, Test Engine) on your own infrastructure, connected to GitHub Enterprise Server 3.14+ or GitHub.com, so code and data stay in your network. Mergify itself holds no FedRAMP authorization or CMMC certification; Enterprise Server runs under your own authorization to operate. Details: [mergify.com/solutions/enterprise-server](https://mergify.com/solutions/enterprise-server). Mergify does **not** host code, and it does **not** support GitLab, Bitbucket or any code host other than GitHub. GitLab CI is supported as a source of CI results only. ## For agents - Product documentation: [docs.mergify.com](https://docs.mergify.com/), which serves its own `llms.txt` and a Markdown source for every page. - The REST API is described by an OpenAPI 3.1 document at [docs.mergify.com/openapi.json](https://docs.mergify.com/openapi.json). Base URL `https://api.mergify.com/v1`; authenticate with `Authorization: Bearer `, using either an application key created in the dashboard (scopes: `admin`, `ci`) or a GitHub personal access token. - Markdown versions: every product, pricing, comparison, guide and learn page is also served at its URL plus `.md` (for example [mergify.com/product/merge-queue.md](https://mergify.com/product/merge-queue.md)), and each page links to it with ``. Blog posts and customer stories below link to their Markdown source. - Full text of those pages in one file: [mergify.com/llms-full.txt](https://mergify.com/llms-full.txt). - Full page list: [mergify.com/sitemap-index.xml](https://mergify.com/sitemap-index.xml). - Getting started needs no sales contact: the free plan is self-serve from [the dashboard](https://dashboard.mergify.com/). ## Overview - [More pull requests. Same green main.](https://mergify.com/) - [Pricing](https://mergify.com/pricing): Every product. One plan. Zero compromises. Plans: Free $0; Max $21 per active seat/month ($18 billed yearly, 15% off); Enterprise custom volume-based pricing. Every plan includes all three products and only charges for active contributors. - [Integrations](https://mergify.com/integrations): Mergify works with your existing CI, monitoring, and developer tools. - [Mergify ROI Calculator](https://mergify.com/calculator): Calculate what broken main and flaky tests cost your engineering team, and see what Mergify saves you. - [Startup Program](https://mergify.com/startups): Go from Startup to Scaleup. Get our plan for free for a maximum of 12 months and 50 seats for your developers. - [About](https://mergify.com/about): We shipped the first merge queue you could buy, then CI Insights and Test Engine around it. Bootstrapped, still run by the two engineers who started it. - [Discovery Call](https://mergify.com/discovery): Book a demo with our team to see how Mergify can help your engineering team. - [Customers](https://mergify.com/customers): Engineering teams we helped merge faster, safer, and cheaper - [Blog](https://mergify.com/blog): Stories, insights, and opinions from the team behind Mergify - [Careers](https://mergify.com/careers): Remote-first and senior. Join the team building the tools that make CI/CD a joy. - [Contact](https://mergify.com/contact): Book a call, or find who to email for support, sales, or a security report. - [Brand Assets](https://mergify.com/brand): Download Mergify logos, colors, and brand guidelines. Free assets for customers, partners, and press. ## Products - [Merge Queue](https://mergify.com/product/merge-queue): Keep main green. Always. - [CI Insights](https://mergify.com/product/ci-insights): CI observability and auto-retry - [Test Engine](https://mergify.com/product/test-engine): Stop flaky tests before they merge ## Guides - [Guides](https://mergify.com/guides): Step-by-step how-to guides for merge queue, CI, flaky tests, and code freezes. Copy-paste config, from the team behind Mergify. - [How to cut CI costs with batching and bisection](https://mergify.com/guides/cut-ci-costs-batching-bisection): Batch several pull requests into one CI run and bisect only when it fails. The cost math, the config, and how to pick a batch size that does not wreck your queue latency. - [How do I debug flaky tests and intermittent CI failures?](https://mergify.com/guides/debug-flaky-tests-intermittent-ci-failures): Rerun the failing test on the same commit, then compare a failing run with a passing one and match the difference to a known cause. Repeat commands, a symptom table, and how to know the fix worked. - [How to detect and quarantine flaky tests automatically](https://mergify.com/guides/detect-and-quarantine-flaky-tests): Send your test results to Mergify, let it classify which tests are flaky, and turn on auto-quarantine so their failures stop blocking merges while they keep running. - [How to find your slowest CI jobs with CI Insights](https://mergify.com/guides/find-slowest-ci-jobs): Rank your CI jobs by the time they actually cost, tell a slow job apart from a slow runner, and stop the jobs that never needed to run. With CI Insights. - [How to manage dependent PRs with Depends-On](https://mergify.com/guides/manage-dependent-prs-depends-on): Declare pull request dependencies with a Depends-On header and Mergify holds the merge until the pull requests it names have landed, in your repository or another one in your organization. - [How do I merge pull requests from Claude Code and other coding agents safely?](https://mergify.com/guides/merge-pull-requests-from-coding-agents): What happens after the agent opens the pull request: make sure CI runs, keep a human approval, queue it, stop agents merging around the queue, and tell them what to do when a check fails. - [How to run a merge queue during a code freeze](https://mergify.com/guides/merge-queue-code-freeze): Schedule a freeze in Mergify, carve out the hotfix path, and keep the queue testing pull requests so nothing lands on the frozen branch until you lift it. - [Do I need a merge queue if my CI is fast?](https://mergify.com/guides/merge-queue-if-ci-is-fast): Fast CI shortens each run. It still tests a pull request against the main it branched from, so two green pull requests can break main. Merge skew explained, and how to tell whether you need a queue. - [How to set up a merge queue on GitHub](https://mergify.com/guides/setup-github-merge-queue): A step-by-step guide to setting up a merge queue on GitHub with Mergify, including a validated .mergify.yml you can copy. - [How to stop flaky tests from blocking your merge queue](https://mergify.com/guides/stop-flaky-tests-blocking-merge-queue): Keep a flaky test from stalling your merge queue: anti-flake queue settings you can copy, automatic job retries, and quarantine for the tests that keep lying. - [How do I test AI-generated pull requests before they merge?](https://mergify.com/guides/test-ai-generated-pull-requests): Run the same required checks as any pull request, then test each one against the main it will land on with a merge queue. Batching keeps CI affordable at volume, and Prevention flags new flaky tests. ## Reports - [State of Merge Queues 2026](https://mergify.com/reports/state-of-merge-queues-2026): What 200,000 merges across 477 engineering teams reveal about the gap between approved and merged: the broken-main rate scales 16x with team size, private code breaks main 4.5x more than open source, and AI-assisted PRs break main half as often. ## Learn - [Learn](https://mergify.com/learn): Long-form guides on the engineering problems Mergify solves. Written by the team behind the product. - [CI Auto-Retry: When to Retry and When to Investigate](https://mergify.com/learn/auto-retry): Auto-retry hides transient CI failures so engineers do not chase noise. It also masks real flake patterns when applied bluntly. Full guide to retry budgets, retry-on-exit-code, and how to retry without going blind. - [What Is a CI/CD Pipeline? A Practical Guide](https://mergify.com/learn/cicd-pipeline): A CI/CD pipeline is the automated sequence of steps that turns a code change into running software. Build, test, package, deploy. Full guide: what each stage does, the right order, where pipelines break, and how to keep them under a CI budget. - [CircleCI Test Results: store_test_results, Insights, Reruns](https://mergify.com/learn/circleci/test-results): How to get test results into CircleCI: store_test_results and a config that works, what the Tests tab and Test Insights do with them, how CircleCI flags and reruns flaky tests, and how to send the same results to Mergify. - [What Is Continuous Integration? A Practical Guide](https://mergify.com/learn/continuous-integration): Continuous integration is the practice of merging every engineer's work into one shared branch many times a day, with an automated build and test on every change. Full guide: how CI works, the practices that make it useful, and the places teams skip and regret. - [Flaky tests: named, fixed, quarantined](https://mergify.com/learn/flaky-tests): The guide to flaky tests: named patterns, root causes, and fixes for every major test framework. - [Flaky Cypress tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/cypress): Named patterns behind flaky Cypress suites: cy.wait races, cy.intercept too late, detached DOM after re-render, broken retry-ability, session leakage, animation click misses. With fixes and Mergify quarantine. - [Flaky tests on GitHub Actions: the missing test layer](https://mergify.com/learn/flaky-tests/github-actions): It stores, reruns and reports jobs. The tests inside a job are lines in its log. Test Engine adds the missing test layer: a history for every test, flaky detection, quarantine and in-job retries, for every framework you run. - [Flaky Cypress tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/cypress): Run Cypress with Mergify Test Engine on GitHub Actions: the JUnit reporters and upload step, why Cypress retries hide failures from the report, and what makes e2e specs flake on GitHub-hosted runners. - [Flaky Go tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/go): Run Go tests with Mergify Test Engine on GitHub Actions: gotestsum and the upload action, why the Go test cache hides flaky tests, and what -race does on GitHub-hosted runners. - [Flaky Jest tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/jest): Run Jest with Mergify Test Engine on GitHub Actions: the withMergify setup, jest.retryTimes versus Re-run failed jobs, and what makes Jest flake on GitHub-hosted runners. - [Flaky JUnit tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/junit): Run JUnit with Mergify Test Engine on GitHub Actions: Surefire's reports and the upload step, why rerunFailingTestsCount hides flaky tests, and what makes JUnit flake on GitHub-hosted runners. - [Flaky Minitest tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/minitest): Run Minitest and Rails tests with Mergify Test Engine on GitHub Actions: the minitest-mergify setup, minitest-retry versus Re-run failed jobs, and why Rails suites flake on hosted runners. - [Flaky MSTest tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/mstest): Run MSTest with Mergify Test Engine on GitHub Actions: the JUnit logger and upload step, and why [Retry] and method-level parallelism hide or cause flaky tests on GitHub-hosted runners. - [Flaky NUnit tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/nunit): Run NUnit with Mergify Test Engine on GitHub Actions: the JUnit logger and upload step, NUnit's [Retry] versus Re-run failed jobs, and what makes NUnit flake on GitHub-hosted runners. - [Flaky Pest tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/pest): Run Pest with Mergify Test Engine on GitHub Actions: the --ci and JUnit upload workflow, why ->flaky() and --retry hide flaky tests, and what makes Pest flake on GitHub-hosted runners. - [Flaky PHPUnit tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/phpunit): Run PHPUnit with Mergify Test Engine on GitHub Actions: the JUnit upload workflow, why --retry hides flaky tests, and what makes PHPUnit flake on GitHub-hosted runners. - [Flaky Playwright tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/playwright): Run Playwright with Mergify Test Engine on GitHub Actions: the two-step setup, Playwright retries versus Re-run failed jobs, and what makes browser tests flake on GitHub-hosted runners. - [Flaky pytest tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/pytest): Run pytest with Mergify Test Engine on GitHub Actions: the workflow, why Re-run failed jobs hides flaky tests, and what makes pytest flake on GitHub-hosted runners. - [Flaky RSpec tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/rspec): Run RSpec with Mergify Test Engine on GitHub Actions: the gem setup Bundler skips, rspec-retry versus Re-run failed jobs, and what makes Rails specs flake on GitHub-hosted runners. - [Flaky Rust tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/rust): Run Rust tests with Mergify Test Engine on GitHub Actions: the cargo-nextest profile and upload step, nextest retries versus Re-run failed jobs, and why Rust tests flake on hosted runners. - [Flaky TestNG tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/testng): Run TestNG with Mergify Test Engine on GitHub Actions: Surefire's report and the upload step, why a retry analyzer turns failures into skips, and what makes TestNG flake on GitHub-hosted runners. - [Flaky Vitest tests on GitHub Actions: setup, retries and runner pitfalls](https://mergify.com/learn/flaky-tests/github-actions/vitest): Run Vitest with Mergify Test Engine on GitHub Actions: the reporter setup that keeps PR annotations, retries versus reruns, and what makes Vitest flake on GitHub-hosted runners. - [Flaky Go tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/go): Named patterns behind flaky Go suites: t.Parallel races on package state, goroutine leaks, map iteration assumptions, real-clock timing, leaked httptest servers, TestMain teardown skipped on panic. With fixes and Mergify quarantine. - [Flaky Jest tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/jest): Named patterns behind flaky Jest suites: fake-timer leakage, snapshot drift, mock hoisting traps, and more. With fixes and Mergify quarantine. - [Flaky JUnit tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/junit): Named patterns behind flaky JUnit suites: static state leaking across forks, Spring context cache evictions, Mockito mock bleed, real-clock assertions, leaked MockWebServers, Surefire parallel races. With fixes and Mergify quarantine. - [Flaky Minitest tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/minitest): Named patterns behind flaky Minitest suites: parallel worker races, order-dependent escape hatches, transactional fixtures with JS specs, Mocha stub leakage, travel_to without travel_back. With fixes and Mergify quarantine. - [Flaky MSTest tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/mstest): Named patterns behind flaky MSTest suites: AssemblyInitialize coupling to discovery order, ClassInitialize racing on static state, DeploymentItem path collisions, async void test signatures, real-clock assertions. With fixes and Mergify quarantine. - [Flaky NUnit tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/nunit): Named patterns behind flaky NUnit suites: parallel scope confusion, static field leakage, SetUpFixture cleanup that never fires, .Result deadlocks, real-clock assertions, shared HttpClient handlers. With fixes and Mergify quarantine. - [Flaky Pest tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/pest): Named patterns behind flaky Pest suites: higher-order chains sharing state, beforeEach scope confusion, paratest workers fighting over the database, snapshot races, Carbon clocks left frozen. With fixes and Mergify quarantine. - [Flaky PHPUnit tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/phpunit): Named patterns behind flaky PHPUnit suites: static property leakage, paratest workers fighting over the database, dataProvider rows mutating state, Mockery expectations unclosed, Carbon clocks left frozen. With fixes and Mergify quarantine. - [Flaky Playwright tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/playwright): Named patterns behind flaky Playwright suites: auto-wait races, route handlers too late, networkidle that lies, locator strict-mode surprises, headed vs headless drift. With fixes and Mergify quarantine. - [Flaky pytest tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/pytest): Named patterns behind flaky pytest suites: fixture teardown races, xdist ordering, Hypothesis seed drift, monkeypatch leakage, and more. With fixes and Mergify quarantine. - [Flaky RSpec tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/rspec): Named patterns behind flaky RSpec suites: order dependencies under random seeds, database_cleaner mismatches, lazy let surprises, Timecop freezes, constant leakage, Capybara timing races. With fixes and Mergify quarantine. - [Flaky Rust tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/rust): Named patterns behind flaky Rust suites: parallel test threads racing on globals, Lazy initialization order, Tokio runtime drift, real-clock timing, env var mutation, tempfile aliasing. With fixes and Mergify quarantine. - [Flaky TestNG tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/testng): Named patterns behind flaky TestNG suites: dependency cascades hiding failures, parallel methods racing on shared instances, DataProvider rows mutating state, listeners with global reach, retry analyzers papering over bugs. With fixes and Mergify quarantine. - [Flaky Vitest tests: 8 patterns and how to kill them](https://mergify.com/learn/flaky-tests/vitest): Named patterns behind flaky Vitest suites: thread-pool state leakage, vi.mock hoisting traps, isolate:false cache sharing, snapshot races, fake-timer leakage. With fixes and Mergify quarantine. - [GITHUB_STEP_SUMMARY: Write a GitHub Actions Job Summary](https://mergify.com/learn/github-actions/job-summary): How GITHUB_STEP_SUMMARY works: append Markdown, the 1 MiB and 20-step limits, why the summary goes missing on failed runs, and a runnable workflow that turns JUnit XML into a test summary. - [Retry Failed Tests on GitHub Actions (Not the Whole Job)](https://mergify.com/learn/github-actions/retry-failed-tests): GitHub Actions re-runs jobs and nick-fields/retry re-runs steps; neither re-runs a test. How to retry only the flaky test inside the job, with runnable workflows, and how to keep a record of what got retried. - [GitHub Actions Test Report: dorny, EnricoMi, mikepenz, CTRF](https://mergify.com/learn/github-actions/test-report): How to get a test report on GitHub Actions: working workflows for dorny/test-reporter, EnricoMi/publish-unit-test-result-action, mikepenz/action-junit-report and ctrf-io/github-test-reporter, what each is good at, and how far back each one looks. - [JUnit Test Results in Jenkins: Publish, Unstable, History](https://mergify.com/learn/jenkins/junit-test-results): How to publish JUnit test results in Jenkins: the 'Publish JUnit test result report' action and the junit step, a Jenkinsfile that works, FAILURE vs UNSTABLE, the options worth knowing, and what Jenkins remembers about a flaky test. - [JUnit XML: Format, Reporters per Framework, and CI Upload](https://mergify.com/learn/junit-xml): What is in a JUnit XML file, the flag or reporter that writes it for pytest, Jest, Vitest, Playwright, RSpec, Go, Maven and Gradle, what Jenkins, CircleCI and GitHub Actions do with it, and how to upload it. - [What Is a Merge Queue?](https://mergify.com/learn/merge-queue): A merge queue tests every pull request against the future state of main before it merges, so two PRs that pass CI separately cannot break main together. Full guide with diagrams, mechanics, and feature breakdowns. - [Batching in a Merge Queue](https://mergify.com/learn/merge-queue/batching): Batching groups multiple pull requests into a single CI run, then bisects when the run fails. The fewer CI runs your queue does, the cheaper your CI bill, with the tradeoff that one bad PR can take down the whole batch. - [Parallel Queues (Scopes) in a Merge Queue](https://mergify.com/learn/merge-queue/parallel-queues): Parallel queues, sometimes called partitions or scopes, give independent areas of a codebase their own merge lane. A frontend CSS fix should not wait behind a backend API migration. Essential for monorepos. - [Speculative Checks in a Merge Queue](https://mergify.com/learn/merge-queue/speculative-merging): Speculative checks parallelize merge queue testing by assuming PRs ahead in the queue will pass. The result is a queue that runs in parallel rather than serially, cutting latency from hours to minutes when failure rates are low. - [Two-Step CI in a Merge Queue](https://mergify.com/learn/merge-queue/two-step-ci): Two-step CI runs lightweight checks on every PR and saves the full suite for the moment a PR is about to merge. Faster developer feedback, smaller CI bill, and the only way to reliably catch semantic conflicts. - [Monorepo: What It Is and How to Run One at Scale](https://mergify.com/learn/monorepo): A monorepo is one repository for many projects. The benefits are real, and so is the tax it puts on CI and merge coordination. Full guide: what a monorepo is, why teams adopt one, the tooling, and how CI and merge queues keep it fast. - [Monorepo CI: Running Only the Tests That Matter](https://mergify.com/learn/monorepo/ci): Running the full CI suite on every change in a monorepo is expensive and slow. Scope-aware CI, affected-projects detection, and parallel queues are how teams keep monorepo CI fast. Full guide with patterns and tradeoffs. - [Monorepo Merge Queue: Scope Lanes, Batching, Bisection](https://mergify.com/learn/monorepo/merge-queue): A monorepo puts every team on one main branch, so merges serialize and unrelated PRs wait on each other. A scope-aware merge queue runs an independent lane per project, batches within a scope, and bisects failures across packages. How it works and why a monorepo needs it. - [What Is Playwright? A Practical Guide to End-to-End Testing](https://mergify.com/learn/playwright): Playwright is Microsoft's end-to-end testing framework for the web. It drives a real browser, auto-waits for actionable elements, and runs the same test across Chromium, Firefox, and WebKit. Full guide: how it works, when to pick it, what breaks in CI. - [What Is pytest? A Practical Guide to Python Testing](https://mergify.com/learn/pytest): pytest is the de facto Python testing framework. Plain functions, no boilerplate, powerful fixtures, plugin ecosystem, and a syntax that scales from a one-line assert to a full integration suite. Full guide: how it works, the features that matter, what breaks in CI. - [Queue Analytics: What to Measure on a Merge Queue](https://mergify.com/learn/queue-analytics): Queue analytics turns a merge queue from a black box into a measurable system. Throughput, wait time, batch success rate, time to merge. Full guide to the metrics that show whether your queue is paying for itself. - [Test Quarantine: Stop Flaky Tests From Blocking Merges](https://mergify.com/learn/test-quarantine): Test quarantine isolates known-flaky tests so they keep running and reporting without gating merges. Full guide: what to quarantine, how long to leave it there, and the anti-patterns that turn quarantine into a graveyard. - [Trunk-Based Development: How It Actually Works](https://mergify.com/learn/trunk-based-development): Trunk-based development means everyone commits to one branch. The hard part is keeping main green. Full guide: short-lived branches, feature flags, merge queues, what teams skip and regret. - [Feature Flags and Trunk-Based Development](https://mergify.com/learn/trunk-based-development/feature-flags): Trunk-based development needs feature flags to stay honest. The four flag types, why most teams accumulate flag debt, and how to retire flags before they become permanent config. - [Short-Lived Branches: Patterns That Keep PRs Under a Day](https://mergify.com/learn/trunk-based-development/short-lived-branches): How trunk-based teams ship multi-day work without multi-day branches. Stacked PRs, branch by abstraction, and the splitting patterns that keep every branch under 24 hours. - [Trunk-Based Development vs Feature Branches](https://mergify.com/learn/trunk-based-development/vs-feature-branch): Feature branches live for weeks. Trunk-based branches live for hours. The cost difference shows up in merge conflicts, integration time, and how often main breaks. The math, the diagrams, the migration path. - [Trunk-Based Development vs Gitflow](https://mergify.com/learn/trunk-based-development/vs-gitflow): Two branching models from two different eras. When Gitflow was the right answer, why most modern teams left it behind, and how to migrate to trunk-based development without breaking your release process. ## Compare - [How does Mergify compare?](https://mergify.com/compare-mergify): Honest 5-way comparison of merge queue platforms in 2026: GitHub Merge Queue, Graphite, Trunk, Aviator, and Mergify. Feature matrix, decision guide, and FAQs. - [Mergify vs GitHub Merge Queue](https://mergify.com/compare/github-merge-queue): When a pull request fails in GitHub's merge queue, every run behind it starts over. See where Mergify does it differently. - [Mergify vs Aviator](https://mergify.com/compare/aviator): Compare Mergify and Aviator for merge queue automation. See where the differences matter. - [Mergify vs Trunk](https://mergify.com/compare/trunk): Compare Mergify and Trunk for merge queue automation. See where the differences matter. - [Mergify vs Datadog CI Visibility](https://mergify.com/compare/datadog-ci-visibility): Compare Mergify CI Insights and Datadog CI Visibility. Mergify goes beyond dashboards with automated test quarantine, auto-retry, and native merge queue integration. - [Flaky Test Tools Compared: Mergify, Trunk, Datadog, BuildPulse](https://mergify.com/compare/flaky-test-tools): Mergify Test Engine, Trunk Flaky Tests, Datadog Test Optimization and BuildPulse side by side: how each detects flaky tests, whether it retries them inside the job, what happens on the pull request and in the merge queue. - [Mergify vs Graphite](https://mergify.com/compare/graphite): Compare Mergify and Graphite for stacked PRs and the merge queue. See where they overlap and how to integrate them. - [Mergify vs Depot](https://mergify.com/compare/depot): Depot runs your CI jobs faster. Mergify decides which pull requests land on main. See where each fits and how teams run both. ## Migration Guides - [Outgrowing Bors? Migrate to Mergify](https://mergify.com/migrate/bors): Bors is deprecated. Mergify is the natural upgrade with advanced merge queues and CI-aware workflows. - [Outgrowing Bulldozer? Migrate to Mergify](https://mergify.com/migrate/bulldozer): Bulldozer slows you down at scale. Try Mergify for advanced merging and smart CI workflows. ## Customer Stories - [AheadComputing](https://mergify.com/customers/aheadcomputing.md): Optimizing Hardware CI Efficiency and Visibility with Mergify - [Apex Fintech Solutions](https://mergify.com/customers/apex.md): Scaling Monorepo CI and Improving Delivery Reliability with Mergify - [Back Market](https://mergify.com/customers/back-market.md): Optimizing the release process & improving the engineers' lives - [Berkshire Grey](https://mergify.com/customers/berkshiregrey.md): Streamlining CI Efficiency and Merge Stability with Mergify - [Botify](https://mergify.com/customers/botify.md): Scaling Developer Productivity and Release Confidence with Mergify - [Cabal](https://mergify.com/customers/cabal.md): How Haskell's Cabal Project Keeps Pull Requests Moving Through a Two-Approval Gate - [Cerebras](https://mergify.com/customers/cerebras.md): Scaling AI Hardware CI Throughput With Batch Merge & Two-Step CI - [Contra](https://mergify.com/customers/contra.md): Improving developer velocity & efficiency through automation - [DeepDrive](https://mergify.com/customers/deepdrive.md): Helping DeepDrive meet automotive software quality standards - [Elastic](https://mergify.com/customers/elastic.md): How Elastic Keeps Its Six-Week Release Train Running Without Manual Backports - [Frappe](https://mergify.com/customers/frappe.md): How Frappe Keeps ERPNext and Its Framework in Sync Across Long-Lived Stable Branches - [Fundrise](https://mergify.com/customers/fundrise.md): Resolving CI pain points to sustain a high development velocity - [Jane](https://mergify.com/customers/jane.md): From Spreadsheet Deploys to Parallel CI: How Jane Scaled Delivery with Mergify - [Luminar](https://mergify.com/customers/luminar.md): Helping Luminar's developers save time and gain efficiency - [Milvus](https://mergify.com/customers/milvus.md): How Milvus Auto-Merges 1,700+ Pull Requests a Year Across an Open Source Vector Database Ecosystem - [Mozilla](https://mergify.com/customers/mozilla.md): How Mozilla Keeps Its GitHub-Hosted Firefox Projects Merging Without the Babysitting - [Orca Security](https://mergify.com/customers/orca-security.md): Securing the main branch - [PayFit](https://mergify.com/customers/payfit.md): Boosting Developer Velocity and CI Reliability with Mergify - [Productboard](https://mergify.com/customers/productboard.md): Scaling and solving problems with continuous development - [Prophesee](https://mergify.com/customers/prophesee.md): Optimizing the development process while lightening the developers' mental load - [Rook](https://mergify.com/customers/rook.md): How Rook Auto-Backports to Each Release Branch Without the Manual Cherry-Picks - [Zama](https://mergify.com/customers/zama.md): Stabilizing Main in a Blockchain Monorepo with Mergify - [Zivid](https://mergify.com/customers/zivid.md): Scaling a monorepo by automating merges and cutting CI costs ## Blog - ["Re-run Failed Jobs" Is Not Flaky Test Management](https://mergify.com/blog/re-run-failed-jobs-is-not-flaky-test-management.md): The rerun button is the flaky-test strategy of most GitHub Actions teams. It gets one PR merged and forgets everything it just learned about your tests. - [Python and Postgres Don't Agree on What "CET" Means](https://mergify.com/blog/python-postgres-disagree-on-cet.md): Six timezone names that Python accepts and Postgres reads differently or refuses, and why the fix was one list enforced by a parity test. - [Moving Our Python Engine to httpx2: the Tracer and the Trust Store Were the Hard Part](https://mergify.com/blog/moving-python-engine-to-httpx2.md): Swapping imports was the easy part. Keeping Datadog spans per host and TLS on the same CA bundle as Postgres, S3 and git took the real work. - [hash(id) % 8 Pinned One Python Process at 98% While Its Neighbors Idled](https://mergify.com/blog/hash-modulo-pinned-one-python-process.md): Adding processes only re-rolled the hash, and the balancer we built to replace it froze because it ranked shards by the peak of a capped metric. - [A GitHub Actions Cache Key Is Not the Cache Key](https://mergify.com/blog/github-actions-cache-key-is-not-the-cache-key.md): For four months our CI cache restores printed 'Cache not found' and stayed green. actions/cache hashes the runner's compression tool into an address you never see. - [We Deleted a 63 MB GeoIP Database and Replaced It with a 64-Byte Signature](https://mergify.com/blog/geoip-database-64-byte-signature.md): Our device fingerprint never refused a login, so we bound sessions to a WebCrypto key the browser cannot export. What broke, and why Chrome's DBSC should retire most of it. - [Two Logins, One Tab, One Cache Key](https://mergify.com/blog/two-logins-one-tab-one-cache-key.md): One sessionStorage key for every login meant the next person on a tab briefly saw the previous account's profile. Naming the cache after the login fixed it, at a price. - [Should you build your own merge queue?](https://mergify.com/blog/should-you-build-your-own-merge-queue.md): A merge queue is a weekend prototype and a multi-year maintenance commitment. Here's how to tell which one you're actually signing up for, and the operating tail that decides it. - [Build vs. buy, after LLMs made building look cheap](https://mergify.com/blog/build-vs-buy-after-llms-made-building-look-cheap.md): LLMs collapsed the cost of the first 80% of any tool. That's exactly the part that was never the expensive part. Here's a framework for deciding what to build and what to buy when a prototype is an afternoon away. - [Every Test Gets a Fresh Postgres Database: Fast Per-Test Isolation in SQLAlchemy](https://mergify.com/blog/postgres-database-per-test-sqlalchemy.md): Every test in our engine suite runs against its own real Postgres database, cloned from a template so the suite stays fast. Then one Postgres rule we'd known since day one turned that clever trick into a 20-minute CI outage. - [We Stopped Our Config Builder From Destroying Your YAML, Then Found a Worse Bug Next to It](https://mergify.com/blog/yaml-config-builder-parser-bug.md): Our no-code config builder used to strip comments and anchors out of your .mergify.yml on every commit. Fixing it meant patching the document in place instead of re-dumping it, and an audit of the code next door turned up a parser bug that had been silently inverting a security condition in production. - [The Native TypeScript Compiler Cut Our Typecheck From 13s to 3.5s. The Only Hard Part Was ESLint.](https://mergify.com/blog/native-typescript-compiler-faster-typecheck.md): We swapped in TypeScript 7's native Go compiler and our dashboard typecheck went from 13s to 3.5s. The compiler was nearly a drop-in. The real work was keeping typescript-eslint alive when native 7.0 ships no importable compiler API. - [AI-assisted PRs break main half as often as human ones](https://mergify.com/blog/state-of-merge-queues-2026.md): We measured 153,000 merges across 160 engineering teams over 90 days. AI-assisted PRs broke main about half as often as non-AI ones, the broken-main rate scales 16x with team size, and private code breaks main 4.5x more than open source. Findings from the State of Merge Queues 2026 report. - [Our Frontend Was Guessing What Our Parser Accepts. It Was Wrong for 70 of 75 Attributes.](https://mergify.com/blog/our-frontend-was-guessing-what-our-parser-accepts.md): Most of the wrong menus were hiding valid operators, so nobody filed a bug. Instead of patching the heuristic, we made the engine's parser publish its own grammar through the config schema. - [Our Auth Library's Last Release Was July 2022. We Noticed in June 2026.](https://mergify.com/blog/our-auth-librarys-last-release-was-july-2022.md): A dead library ran our dashboard's authentication for four years without a single alert, because dependency bots only report new versions and known CVEs. - [Merge Queues Were Built for Humans. AI Agents Need More.](https://mergify.com/blog/merge-queues-and-ai-coding-agents.md): Mitchell Hashimoto says merge queues work for humans but buckle once AI agents write the code at 100x the churn. He's right, and here is what a merge queue built for agent-scale throughput actually looks like. - [How we made our merge queue lower its own quality bar (only when it's drowning)](https://mergify.com/blog/dynamic-merge-queue-batch-size.md): Our merge queue tested every PR alone, which choked the morning a burst of agent PRs landed faster than CI could clear them. Here's the dynamic batch size that widens under load, and the production data on what it changed. - [Two counters instead of a materialized view](https://mergify.com/blog/two-counters-instead-of-a-materialized-view.md): Materialized views recompute from source data, but we delete ours within 30 days. Here's the two-writer, two-counter rollup we built on plain Postgres, and the race a boolean dirty flag would have quietly lost. - [We put Jinja2 in our config for flexibility. Users wanted one variable.](https://mergify.com/blog/jinja2-config-users-wanted-one-variable.md): We gave users a full templating engine in their config, then scanned 4,629 of them to see what they did with it. Across 6,873 label values, exactly one held a template. Here's what that taught us about shipping flexibility. - [Path Filters Are a Convenience, Not a CI Gate](https://mergify.com/blog/path-filters-are-not-a-ci-gate.md): Skipping CI with paths: is a fine optimization until you make the check required. Then it breaks, and not because the glob is imprecise. A path-filtered workflow that doesn't run reports no status at all, so the required check sits pending and blocks the merge, or you fake it green and gate on nothing. Here's why a path filter can't be a merge gate, and what to use instead. - [Stop Using Labels to Control CI in GitHub Actions](https://mergify.com/blog/stop-using-labels-to-control-ci-in-github-actions.md): Gating CI on a PR label feels clean until you learn how GitHub fires label events. Any label change re-runs the whole workflow from scratch, and a required check that's skipped when the label is absent counts as a pass, so PRs merge without ever running it. Here's why the pattern breaks and what to do instead. - [When a production deploy fails, our merge queue freezes itself](https://mergify.com/blog/deploy-failure-freezes-merge-queue.md): A failed production deploy used to be invisible to our merge queue, which kept merging onto a broken release. Here's the 66-line GitHub Actions job that now freezes the queue the moment any deploy scope fails, and why lifting it is a human's job. - [When to Outgrow GitHub's Merge Queue](https://mergify.com/blog/when-to-outgrow-github-merge-queue.md): GitHub's native merge queue is the right starting point. Six signals it is time to upgrade, and what each one tells you about what to switch to. - [Most aria-labels on your buttons are dead weight, and some are bugs](https://mergify.com/blog/aria-labels-are-dead-weight.md): An aria-label doesn't add to a button's accessible name, it replaces it. Here's why most of the ones you sprinkle on buttons are redundant, and how a few quietly break voice control and fail WCAG. - [ON CONFLICT DO UPDATE Is Rewriting Rows You Never Changed](https://mergify.com/blog/on-conflict-do-update-rewriting-rows-you-never-changed.md): A bare INSERT ... ON CONFLICT DO UPDATE rewrites the whole row even when nothing changed. Production numbers showing what that costs, the one-line WHERE clause that stops it, and the 21 call sites where we had to leave the write alone. - [We Built a Merge Queue Mode That Skips the Safety Check on Purpose](https://mergify.com/blog/merge-queue-mode-skips-safety-check-on-purpose.md): Mergify's merge queue now has three modes: serial, parallel, and isolated. How each one trades safety, latency, and throughput, and why the fastest mode drops the cross-batch conflict check with a risk you can compute. - [A Disk Alert, a 392 GB Table, and Indexes Bigger Than the Data](https://mergify.com/blog/disk-alert-392gb-table-indexes.md): A routine Postgres disk alert turned into more than 150 GB of reclaimable waste: blobs nobody reads back, the same JSON copied across 200 million rows, and indexes larger than the data they index. - [How we run parallel merge queues on our own monorepo](https://mergify.com/blog/how-mergify-scopes-work.md): In a monorepo, one merge queue makes everyone wait in a single line. Scopes let Mergify batch related pull requests, reuse CI, and run unrelated changes in parallel. Here's how we set it up on our own repo. - [Swapping a Primary Key on a 4M-Row Table: Why I Took 10 Minutes of Downtime](https://mergify.com/blog/swapping-primary-key-4m-row-table.md): Dropping two columns from a 4-million-row table meant swapping the primary key on the busiest table in our system. Why we skipped the zero-downtime dance and took ten minutes of downtime on purpose. - [How Agents Work With Parallel Agents](https://mergify.com/blog/how-agents-work-with-parallel-agents.md): In March I capped myself at two parallel AI coding agents. Now I run a dozen, and the real bottleneck moved from writing code to reviewing it. - [We Let an LLM Open Pull Requests Against Your .mergify.yml. The Prompt Was the Easy Part.](https://mergify.com/blog/llm-pull-requests-mergify-yml.md): Mergify's new 'Fix with Mergify' button calls an LLM to repair a broken .mergify.yml and opens the change as a pull request. Here's the schema validator, write-access gate, and quota design that keep a model with repo access from doing damage. - [Bun shipped 1M lines in nine days. The PR is the bottleneck now.](https://mergify.com/blog/bun-million-line-pr-postmortem.md): Bun's Rust rewrite landed as one PR with 6,755 commits and over a million lines. Claude wrote most of it. Nine days end to end. Here is what the four merge operations look like at that scale, and what a stack would have changed. - [We fixed Alembic's multiple-heads error with Git history](https://mergify.com/blog/alembic-multiple-heads-git-revisions.md): Every team that writes Alembic migrations in parallel eventually hits the multiple-heads error. We stopped hardcoding down_revision and let Git decide the order instead. - [How we built stacked PRs without a new git workflow](https://mergify.com/blog/stacked-prs-without-a-new-git-workflow.md): We wanted small reviewable PRs without making engineers learn a new git workflow. Here is how we built Mergify Stacks: one local branch, a stable trailer that survives every rebase, four git hooks, and unmodified GitHub. - [How to merge main into a branch in Git (and when to rebase instead)](https://mergify.com/blog/git-merge-main-into-branch.md): Your feature branch is behind main and you need to catch up before opening a PR. Here are the two commands that solve it, the trade-off between merge and rebase, and the conflict cases that bite people every time. - [Making Dashboard Charts Actually Useful: Brush Zoom, Click-to-Filter, and Shareable URLs with ECharts](https://mergify.com/blog/echarts-brush-zoom-shareable-urls.md): How we wired ECharts brush zoom, click-to-filter, and URL-shareable state into a 10-chart dashboard, plus the dataZoom approach and ghost-dot bug we hit on the way. - [Timecop.freeze without Timecop.return is the textbook RSpec time bomb](https://mergify.com/blog/rspec-timecop-travel-back-leak.md): Why a frozen clock in one spec can fail an unrelated spec in a different file, why ActiveSupport's travel_to/travel_back is the safer Rails alternative, and the global teardown that catches forgotten resets. - [Playwright storageState is not just a setup file. It is a contract.](https://mergify.com/blog/playwright-storagestate-shared-auth-leakage.md): Why a single test that re-saves the auth state file poisons every later test that uses it, the per-test path pattern that prevents the leak, and when cy.session-style validation is the right answer. - [We Spent Years Hardening Jinja2 in User Config. We're Removing It Instead.](https://mergify.com/blog/removing-jinja2-from-user-config.md): After years of patching a Jinja2 sandbox against hostile templates, we pulled every customer config, learned what users actually did with the feature, and replaced it with a narrow declarative schema. - [Vitest's isolate:false buys you 30% speed and a class of flake you cannot grep for](https://mergify.com/blog/vitest-isolate-false-module-cache.md): Why disabling per-test module isolation creates cross-file leaks that look identical to logic bugs, what the failure modes actually look like, and the audit pass that lets you keep the speed. - [Hypothesis is not flaky. Your code under test is, and Hypothesis is the messenger.](https://mergify.com/blog/pytest-hypothesis-seed-non-determinism.md): Why a property test that passed for months suddenly fails on a CI run with an example you cannot reproduce locally, the @example pattern that pins the failing case, and why the right response is never to delete the test. - [RSpec system specs see an empty database. database_cleaner is why.](https://mergify.com/blog/rspec-database-cleaner-js-driver-mismatch.md): How Capybara's separate browser connection breaks transactional fixtures, the per-spec-type strategy that fixes the leak, and the modern Rails 7.1 alternative that makes database_cleaner optional. - [Playwright route handlers fire only on requests they were registered before](https://mergify.com/blog/playwright-route-handlers-after-page-goto.md): Why a `page.route()` call placed after `page.goto()` silently misses the request you wanted to intercept, and the registration-order rule that makes network mocks deterministic. - [regex101: A Practical Guide to the Regex Tester Engineers Actually Use](https://mergify.com/blog/regex101-guide-to-the-regex-tester.md): regex101 is the online regex tester most engineers reach for. Live matching, explained groups, multi-flavor support, and a permalink for every pattern. Full guide to the features that matter and a short cheat sheet. - [225 Self-Hosted GitHub Actions Runners: Why We Picked Docker Over VMs](https://mergify.com/blog/vms-or-docker-for-self-hosted-github-actions-runners.md): Our GitHub Actions bill hit $400 a day. We moved CI in-house to three bare-metal hosts, tuned libvirt VMs to match, and then dropped the VM tier entirely for Docker. Here's the path, the moments that decided it, and what bit us along the way. - [vi.mock hoists. Your closure variables do not.](https://mergify.com/blog/vitest-vimock-hoisting-traps.md): Why a Vitest mock factory that references a stub object returns undefined, the vi.hoisted() escape hatch, and the import-order rule that keeps your mocks predictable. - [pytest-xdist makes the suite faster and the flakes weirder](https://mergify.com/blog/pytest-xdist-ordering-races.md): Why a test that always passes alone fails on `pytest -n auto`, the fixture-scope rule that prevents most worker races, and the worker_id pattern for genuinely shared resources. - [RSpec randomized order is the messenger, not the bug](https://mergify.com/blog/rspec-order-dependent-specs-random-seed.md): Why a green spec on `--order defined` fails on `--order random` with a different seed every CI run, how to bisect to the dependent pair, and the cleanup hooks that fix the underlying coupling. - [I'm the new hire on a codebase I didn't write](https://mergify.com/blog/new-hire-on-a-codebase-i-didnt-write.md): A new engineer at Mergify built a daily quiz, grounded in real test assertions, to learn the codebase he ships into. He scored three out of ten on it, and it's the cheapest learning loop he has found for the era when AI types most of the code. - [Playwright auto-wait is great, until your component re-renders mid-action](https://mergify.com/blog/playwright-auto-wait-element-rerenders.md): Why Playwright's actionability check can fire on a stale element, the React state-update pattern that triggers it, and the locator strategy that survives the re-render. - [Vitest's `threads` pool is fast. It is also why your suite leaks state.](https://mergify.com/blog/vitest-thread-pool-state-leakage.md): Why module singletons survive across tests inside a Vitest worker thread, what the failure looks like, and the two-line config change that gives you per-file isolation. - [pytest fixture teardown races: when yield-style cleanup eats itself](https://mergify.com/blog/pytest-fixture-teardown-races.md): Why a session-scoped fixture's teardown can pull state out from under tests still using it, and the per-fixture lifecycle discipline that fixes the leak for good. - [What GitHub Webhook Latency Actually Looks Like](https://mergify.com/blog/what-github-webhook-latency-actually-looks-like.md): We instrumented GitHub webhook delivery latency for ourselves. The p95 stays under 60 seconds in steady state but climbs close to 40 minutes during check-run incidents. - [How to Cut Your GitHub Actions CI Bill (Without Compromising Tests)](https://mergify.com/blog/cut-your-github-actions-ci-bill.md): Five concrete levers that move the GitHub Actions bill: runner sizing, caching, test selection, batching, and two-step CI. The math, the tradeoffs, and how to pick the two that actually fit your codebase. - [How to Enable GitHub Merge Queue with GitHub Actions: The 5-Minute Setup](https://mergify.com/blog/enable-github-merge-queue-actions-setup.md): Enabling GitHub's merge queue is a five-line YAML change plus one repository setting. Here's the working config, the four things that will break the first week, and how to know when you've outgrown it. - [GitHub Auto-Merge: When the Native Button Is Enough, and When You Outgrow It](https://mergify.com/blog/github-auto-merge-when-native-is-enough.md): GitHub has had auto-merge since 2021. The native button handles the simple case well. Here's an honest breakdown of what it does, where it stops being enough, and what to reach for when it does. - [Fake-timer leakage in Jest: the flake nobody sees coming](https://mergify.com/blog/fake-timer-leakage-in-jest.md): Why a single jest.useFakeTimers() call can pollute the next test in the file, what the failure looks like, and the three-line afterEach that makes it go away for good. - [Jest snapshot drift: when toMatchSnapshot lies about your code](https://mergify.com/blog/jest-snapshot-drift-shared-state.md): Snapshots fail every few days with diffs you did not cause. Most teams blame their Date.now() mock. The real story involves three less-obvious sources of drift, and a one-line serializer that fixes them. - [A merge queue is critical infrastructure. Build it accordingly.](https://mergify.com/blog/merge-queue-is-critical-infrastructure.md): On April 23, GitHub's merge queue silently corrupted merges for four and a half hours. The failure mode is structural, and it shows what it takes to build a merge queue at the level of critical infrastructure. - [Why jest.retryTimes() is hiding bugs in your test suite](https://mergify.com/blog/why-jest-retrytimes-hides-bugs.md): Adding retryTimes(3) feels like fixing flakes. It is not. It is throwing away the data you need to find the bug, then telling CI everything is fine. - [Switching from npm to pnpm found 3 phantom dependencies in our React app](https://mergify.com/blog/npm-to-pnpm-phantom-dependencies.md): A pnpm migration meant to speed up installs ended up exposing three phantom dependencies our React app had been shipping without declaring. - [A Markdown File Became Our Company-Wide On-Call Cheat Code](https://mergify.com/blog/markdown-file-oncall-cheat-code.md): How a staff engineer turned scattered tribal knowledge into a git repo with Claude Code that lets any team member run a six-system support investigation in two minutes. - [Python 3.14 in Production: What PEP 649 Actually Breaks](https://mergify.com/blog/python-314-what-pep-649-actually-breaks.md): PEP 649 defers annotation evaluation. That's great until FastAPI tries to resolve your TYPE_CHECKING imports at runtime and every endpoint throws NameError. - [How We Formally Verified Our Merge Queue with TLA+ (and Found Bugs That Tests Missed)](https://mergify.com/blog/how-we-formally-verified-our-merge-queue-with-tla-plus.md): We wrote a TLA+ specification for our merge queue state machine. TLC explored 468,000 states and found two bugs that our test suite and years of production traffic had missed. - [Diving into pytest Finalizers](https://mergify.com/blog/diving-into-pytest-finalizers.md): While building pytest-mergify, we hit a wall with fixture teardown during test reruns. The fix was two helper functions and a trick borrowed from pytest-rerunfailures. - [Your Monorepo's Merge Queue Has a Concurrency Problem](https://mergify.com/blog/monorepo-merge-queue-concurrency-problem.md): How scoped parallel queues turn a serial bottleneck into a DAG, so your frontend team stops waiting for backend CI to finish. - [How a Dashboard Arms Race Put Me on the App Store](https://mergify.com/blog/dashboard-arms-race-app-store.md): It started with a shell script on Slack. Four days and 31 commits later, I had a native macOS app built entirely with Claude Code in a language I'd never touched. - [The Day My AI Agent Deleted 29 Git Worktrees](https://mergify.com/blog/the-day-my-ai-agent-deleted-29-git-worktrees.md): What happens when you rubber-stamp an AI agent's suggestion to 'clean up' your git worktrees, and the agent uses --force on all of them. - [When GitHub Webhooks Lie: How an Empty Array Broke Our Merge Queue](https://mergify.com/blog/when-github-webhooks-lie-how-an-empty-array-broke-our-merge-queue.md): GitHub webhooks can deliver structurally valid payloads with stale data. We traced a customer incident to out-of-order delivery and built action-aware upserts to protect against it. - [The Comfortable Room](https://mergify.com/blog/the-comfortable-room.md): Software engineering was a walled garden. AI just copied the key. The data is messy: 19% slower in trials, 30% more warnings, 322% more vulnerabilities. But the baseline wasn't pristine either. What's left isn't coding: it's judgment, taste, and knowing which room to build. - [How We Turned Claude Into a Cross-System Support Investigator](https://mergify.com/blog/how-we-turned-claude-into-a-cross-system-support-investigator.md): Support triage at Mergify meant juggling Datadog, Sentry, PostgreSQL, Linear, and source code. We built a repo with MCP servers and Claude Code that investigates tickets in parallel, cutting triage from 15 minutes to under 5, with 75% first-pass accuracy. - [Spinners Are the UX Equivalent of “TODO: Fix Later”](https://mergify.com/blog/spinners-are-the-ux-equivalent-of-todo-fix-later.md): We replaced a spinner with a chart-shaped skeleton and realized loading states are part of the layout contract. Bad skeletons cause layout shift. Good ones match the final UI exactly. Here's what we learned fixing ours — and why CLS is a UX problem, not just an SEO metric. - [Claude Didn’t Kill Craftsmanship](https://mergify.com/blog/claude-didnt-kill-craftsmanship.md): AI doesn't remove craftsmanship: it moves it. The goal was never to protect the purity of the saw. It's to build good furniture. Engineers can now focus on intent, judgment, and product quality instead of translating tickets into code. - [On LATERAL Joins](https://mergify.com/blog/on-lateral-joins.md): Our new API endpoint worked in dev but timed out in production. A naive SQL subquery was scanning 660K rows to return 50. Switching to LATERAL JOIN cut response time by 1000x. Here's how join order can make or break your PostgreSQL queries. - [Detecting Blocking Tasks in Asyncio by Measuring Event Loop Latency](https://mergify.com/blog/detecting-blocking-tasks-in-asyncio-by-measuring-event-loop-latency.md): Asyncio only works if every coroutine cooperates. One blocking call can freeze your entire app. This post shows a simple watchdog coroutine that measures event loop latency, detects blocking tasks early, and turns invisible stalls into actionable metrics. - [GitHub Merge Queue Was Step One. Real CI Orchestration Comes Next.](https://mergify.com/blog/github-merge-queue-was-step-one-real-ci-orchestration-comes-next.md): GitHub’s merge queue solved safety, not scale. As CI grows slower, costlier, and shared across teams, merging becomes a scheduling problem. Learn why large monorepos and Bazel users outgrow native queues and what real CI orchestration looks like. - [Stop Lying to Your Dependency Resolver: The Real Rules for Python Dependency Management](https://mergify.com/blog/stop-lying-to-your-dependency-resolver-the-real-rules-for-python-dependency-management.md): Your Python app didn’t change: your dependencies did. This post explains why apps must pin dependencies, libraries must declare ranges, dev tools must be locked, and how to use lockfiles correctly with Poetry, PDM, and uv to avoid CI and production surprises. - [Lessons From a Noisy Monitor](https://mergify.com/blog/lessons-from-a-noisy-monitor.md): Your database monitors keep firing even though nothing is wrong? We hit the same problem: noisy IOPS alerts caused by predictable jobs. This post explains how we replaced brittle thresholds with an SLO-based approach that restored signal, eliminated noise, and stopped the monitor from "crying wolf." - [Monorepo CI for GitHub Actions: Run Exactly the Tests You Need, Nothing More](https://mergify.com/blog/monorepo-ci-for-github-actions-run-exactly-the-tests-you-need-nothing-more.md): Run only the tests that matter in your monorepo. Mergify Monorepo CI detects which parts of your repo each pull request touches and triggers the right GitHub Actions jobs, then aggregates them into a single CI gate for branch protection or Merge Queue. - [await Is Not a Context Switch: Understanding Python's Coroutines vs Tasks](https://mergify.com/blog/await-is-not-a-context-switch-understanding-pythons-coroutines-vs-tasks.md): Python’s async model is misunderstood, especially by engineers coming from JS or C#. In Python, awaiting a coroutine doesn’t yield to the event loop. Only tasks create concurrency. This post explains why that distinction matters and how it affects locking, design, and correctness. - [Updating Materialized Views (Without Worrying Too Much)](https://mergify.com/blog/updating-materialized-views-without-worrying-too-much.md): Materialized views are powerful but painful to change. Here’s how we safely version, refresh, and migrate them without locking production or timing out deployments, plus the approach we use to avoid dangerous DROP/CREATE migrations. - [Goodbye Checklists, Hello AI Linters](https://mergify.com/blog/goodbye-checklists-hello-ai-linters.md): We turned our pull request rules into small AI-powered linters using GitHub’s new actions/ai-inference. Each linter enforces one rule: catching risky changes before humans do, without regexes, static analysis, or friction. - [Origin and Evolution of the Globstar](https://mergify.com/blog/origin-and-evolution-of-the-globstar.md): Discover how the double-asterisk recursive glob pattern evolved: from Zsh’s early 1990s innovation to Bash’s globstar and beyond, spreading into Python, Ruby, Git, and modern build tools. - [Shadow Shipping: How We Double-Executed Code to Ship Safely](https://mergify.com/blog/shadow-shipping-how-we-double-executed-code-to-ship-safely.md): How do you ship risky code without crossing your fingers? In this post, we explain how he ran old and new logic in parallel (“shadow shipping”) to validate behavior in production before rollout. Learn how this simple pattern turned feature-flag anxiety into data-driven confidence. - [Why PostgreSQL Ignored Our Index (and What the Planner Was Thinking)](https://mergify.com/blog/why-postgresql-ignored-our-index-and-what-the-planner-was-thinking.md): PostgreSQL doesn’t "ignore" your indexes, it just does the math differently. We dive into how the planner weighs cost, why it sometimes chooses sequential scans, and how we tuned our queries to make peace with it. - [The Magic (and Mayhem) Behind Our Config Deprecation Transformers](https://mergify.com/blog/the-magic-and-mayhem-behind-our-config-deprecation-transformers.md): We built a "self-healing" system that fixes deprecated configs by opening PRs automatically. It worked like magic, until it didn't. Here's what we learned about the thin line between elegant automation and uncontrollable complexity. - [TypeScript's import type: The Flag That Makes Builds Honest](https://mergify.com/blog/typescripts-import-type-the-flag-that-makes-builds-honest.md): TypeScript doesn’t run your code, but your bundler might think it does. Learn why marking your type imports with import type (and enabling `verbatimModuleSyntax`) makes your builds faster, cleaner, and more predictable. - [Should We Still Write Docs If AI Can Read the Code?](https://mergify.com/blog/should-we-still-write-docs-if-ai-can-read-the-code.md): AI can explain what code does — but not why it does it. This post explores how documentation is evolving in the age of AI, and why writing down human intent is becoming one of the most practical forms of AI alignment. - [Why WARNING Has No Place in Modern Logging](https://mergify.com/blog/why-warning-has-no-place-in-modern-logging.md): Most systems drown in meaningless WARNING logs. They waste money, obscure real errors, and help no one. Here’s why your next logging cleanup should start by deleting WARNING — and how structured logs make your production systems clearer, cheaper, and safer. - [AI Won't Replace Code Reviews, But It Can Fix Them](https://mergify.com/blog/ai-wont-replace-code-reviews-but-it-can-fix-them.md): Code reviews often fail not because the code is wrong, but because no one knows why it was written that way. This post explores how AI-generated comments can add missing intent to pull requests—making both human and AI reviews smarter, faster, and more effective. - [Friends Don't Let Friends Use :latest](https://mergify.com/blog/friends-dont-let-friends-use-latest.md): Floating versions like :latest, ^, and ~ promise convenience but deliver broken builds, hidden regressions, and supply chain risks. Here we explain why they undermine reproducibility and security and shows how to pin GitHub Actions, Docker images, and dependencies safely. - [Application vs. Database: Where Should Permissions Live?](https://mergify.com/blog/application-vs-database-where-should-permissions-live.md): Permissions drift is real: scattered checks, forgotten filters, and data leaks. PostgreSQL’s Row Level Security (RLS) flips the script: pushing verification into the database for stronger safety, but with trade-offs in debugging and performance. - [The Origin Story of Merge Queues](https://mergify.com/blog/the-origin-story-of-merge-queues.md): From Bors and Homu to Bulldozer, Kodiak, Mergify, and now GitHub and GitLab, merge queues have shaped how we keep main branches green. This article traces their history, why they emerged, and how they became a standard in modern software development. - [What I Learned Building My First Jenkins Plugin](https://mergify.com/blog/what-i-learned-building-my-first-jenkins-plugin.md): Building a Jenkins plugin sounded simple — until it became a crash course in Java, Jenkins internals, and community code review. Here’s what I learned, why the process surprised me, and how it now powers Mergify CI Insights. - [Pull Request Management: Streamline Your Workflow with Automation](https://mergify.com/blog/pull-request-management-streamline-your-workflow-with-automation.md): Pull requests are essential, but they don’t scale without automation. Learn PR basics, best practices, and how to automate reviews, tests, and merges with GitHub Actions or Mergify. - [Trunk-Based Development vs Gitflow: Which Branching Model Actually Works?](https://mergify.com/blog/trunk-based-development-vs-gitflow-which-branching-model-actually-works.md): Trunk-based vs Gitflow: which branching model really works for modern CI/CD? We compare both, share trade-offs, and argue why trunk-based (with automation like merge queues) usually wins for teams that care about speed, reliability, and flow. - [Feature Branch Workflow: A Practical Guide for Git](https://mergify.com/blog/feature-branch-workflow-a-practical-guide-for-git.md): A feature branch workflow is one of Git’s most popular strategies. Learn how it works, its pros and cons, and how modern automation (like merge queues) keeps feature branches fast, safe, and frustration-free. - [Looking for a Bulldozer Alternative? Meet Mergify.](https://mergify.com/blog/looking-for-a-bulldozer-alternative-meet-mergify.md): Bulldozer is fine for simple PR automation, but it struggles as teams grow. In this post, we break down its pain points and show how Mergify’s merge queues, flexible rules, and templates make it the smarter choice for modern development workflows. - [Stop Abusing .gitignore](https://mergify.com/blog/stop-abusing-gitignore.md): .gitignore is one of Git’s most abused features. Here’s what it’s actually for, why you shouldn’t commit your editor junk into it, and how to use a global ignore file instead. - [Code Review: Culture, Flow, and Practices That Drive Team Performance](https://mergify.com/blog/code-review-culture-flow-and-practices-that-drive-team-performance.md): A practical guide to modern code review—from reducing friction to building team culture. Tips for writers, reviewers, and leads to turn code review into a source of clarity, speed, and collaboration instead of delay and frustration. - [Mergify CI Insights Now Supports Jenkins](https://mergify.com/blog/mergify-ci-insights-now-supports-jenkins.md): Mergify CI Insights now supports Jenkins. With one plugin install, you get dashboards for flaky jobs, slow builds, reruns, and job costs in hours. Turn your Jenkins pipeline from a black box into clear visibility — and ship with confidence. - [CI Sucks (and That’s OK)](https://mergify.com/blog/ci-sucks-and-thats-ok.md): CI is supposed to help developers move faster — but too often, it does the opposite. In this post, Julien Danjou, Mergify CEO, reflects on why CI feels broken, how teams lose trust in it, and what we can do to bring clarity, observability, and confidence back into the software delivery process. - [GitHub's Merge Queue Isn't Enough for Large Teams](https://mergify.com/blog/github-s-merge-queue-isn-t-enough-for-large-teams.md): Why large engineering orgs quickly hit the limits of GitHub's queue — and what they actually need. - [CI Failures Don’t Just Break Builds: They Break Focus](https://mergify.com/blog/ci-failures-don-t-just-break-builds-they-break-focus.md): CI always breaks at the worst time — slowing fixes, killing flow, and leaving teams rerunning jobs by ritual. We built CI Insights to show which jobs flake, where time is lost, and why your pipeline hurts. Real visibility, zero YAML edits. - [Handling Candidate Rejection: A Delicate Balancing Act](https://mergify.com/blog/handling-candidate-rejection-a-delicate-balancing-act.md): At Mergify, we reject with respect. This post shares how we handle one of hiring’s hardest parts: saying no. Why we keep it short, when we go deeper, and how we try to balance honesty, kindness, and efficiency — for your sake and ours. - [The Mechanics of Mergify’s Project-Driven Workflow](https://mergify.com/blog/the-mechanics-of-mergify-s-project-driven-workflow.md): How Mergify evolved from lightweight Agile to a project-driven workflow that balances ownership, clarity, and autonomy. Briefs, leads, and deadlines keep us motivated, aligned, and shipping without bureaucracy. - [Aligning Project Management with Team Culture at Mergify](https://mergify.com/blog/aligning-project-management-with-team-culture-at-mergify.md): At Mergify, we learned the hard way that process should serve the team—not the other way around. Here’s how we moved beyond rigid Agile rituals to a lightweight, culture-driven workflow that respects autonomy, fosters ownership, and keeps our remote team shipping. ## Legal - [Privacy Policy](https://mergify.com/privacy) - [Terms of Service](https://mergify.com/tos)