How we built stacked PRs without a new git workflow
Blog post from Mergify
Julien Danjou's blog post describes the creation of Mergify Stacks, a tool designed to facilitate the use of stacked pull requests (PRs) without requiring engineers to adopt a new git workflow. The tool simplifies the process of managing PRs by maintaining a single local branch and using a stable Change-Id pattern inspired by Gerrit to track changes across rebases, without modifying GitHub or replacing git itself. This approach contrasts with other tools like Graphite and GitHub's gh-stack, which rely on a branch-per-PR model and can complicate the workflow with a tree of branches. Mergify Stacks enables developers to maintain a linear view of their git history while allowing individual adoption without organizational changes. It also offers an unexpected advantage for AI-driven coding agents by making large, complex PRs more manageable and reviewable through smaller, distinct commits. The tool is open-source, and its CLI is available on GitHub, allowing users to integrate it into their workflow with minimal setup.