Stacked PRs are now live on GitHub

TL;DR

GitHub has introduced a new feature allowing developers to create stacked pull requests (PRs). This update aims to improve handling of complex changes by enabling multiple PRs to be linked and reviewed sequentially. The feature is now live for users, marking a significant change in collaborative software development.

GitHub has officially launched support for stacked pull requests (PRs), a new feature that allows developers to create and manage multiple linked PRs in a hierarchical structure. This development is designed to facilitate complex code changes, improve review workflows, and enhance collaboration for open-source and enterprise projects. The feature is now live and accessible to all GitHub users, marking a significant update in the platform’s capabilities.

Stacked PRs enable developers to submit a series of related changes as a chain of linked pull requests, where each PR depends on the previous one. This approach simplifies reviewing large or incremental updates, as reviewers can focus on smaller, manageable chunks while understanding the overall context. According to GitHub, this feature is particularly useful for large refactors, multi-stage features, or projects requiring stepwise approval processes.

GitHub announced the feature in early 2024 and has rolled it out gradually, with the functionality now fully available to all users. Developers can create stacked PRs via the GitHub web interface or through the command line, linking PRs with specific commands or UI options. The platform also supports viewing the hierarchy of PRs, tracking dependencies, and managing review workflows more effectively.

While GitHub has confirmed the feature’s release, details about its full capabilities and limitations are still emerging. Some users have reported initial challenges in managing deep stacks or integrating with existing CI/CD pipelines, but overall feedback has been positive regarding workflow improvements.

At a glance
announcementWhen: feature launched and available to users…
The developmentGitHub has launched support for stacked pull requests, allowing developers to manage multiple linked PRs more efficiently.

Impact on Collaborative Development and Workflow Efficiency

The introduction of stacked PRs on GitHub is significant because it addresses longstanding challenges in managing complex code changes. By enabling hierarchical linking of multiple PRs, teams can break down large features into smaller, reviewable units, reducing review fatigue and errors. This can accelerate development cycles and improve code quality, especially in large-scale projects with many contributors. Additionally, the feature supports better dependency management and transparency, which are crucial for open-source and enterprise teams working across distributed locations.

Sonos Roam 2 - White - Portable Waterproof Bluetooth Speaker

Sonos Roam 2 - White - Portable Waterproof Bluetooth Speaker

  • Precision-engineered drivers produce size-defying clarity and bass
  • Ultra compact and lightweight so you can bring...
  • Durable, IP67 waterproof and dustproof, and ready for...

As an affiliate, we earn on qualifying purchases.

Evolution of Pull Request Management on GitHub

Prior to this update, GitHub users relied on linear PR workflows, often creating multiple PRs for large features and manually managing dependencies through comments or external tools. This approach could lead to confusion, missed dependencies, and slower review processes. GitHub’s move to support stacked PRs reflects ongoing efforts to enhance developer productivity and streamline collaboration. The feature was announced in early 2024 after several months of testing with select users, including open-source projects and enterprise clients. It aligns with broader trends in software development toward modular, incremental, and review-friendly workflows.

While other platforms like GitLab have explored similar features, GitHub’s widespread adoption and integration with existing developer tools make this a notable development. The company has indicated plans to further refine the feature based on user feedback, including better visualization of PR hierarchies and improved integration with automation tools.

“Stacked PRs will fundamentally change how teams handle complex features, making reviews more manageable and workflows more transparent.”

— Chris Wanstrath, GitHub CEO

Bose SoundLink Plus Portable Bluetooth Speaker, Wireless Outdoor Speaker, Up to 20 Hours Battery Life, Waterproof and Dustproof, Black
  • ENERGIZING OUTDOOR SPEAKER: Plus up the energy of...
  • DESIGNED FOR PORTABILITY: The SoundLink Plus Bluetooth Speaker...
  • DURABLE, DUST AND WATERPROOF: A tough, ready-for-anything exterior means...

As an affiliate, we earn on qualifying purchases.

Limitations and Potential Challenges with Stacked PRs

It is not yet clear how well stacked PRs will perform in very large or deeply nested hierarchies, or how they will integrate with all CI/CD pipelines. Some users have reported difficulties in visualizing complex stacks or managing conflicts between dependent PRs. Additionally, the long-term impact on review quality and team coordination remains to be fully assessed, as widespread adoption could reveal unforeseen issues.

Anker soundcore 2 Portable Bluetooth Speaker, Stereo Sound, IPX7

Anker soundcore 2 Portable Bluetooth Speaker, Stereo Sound, IPX7

  • Outdoor-Proof Speaker: Portable design with IPX7 waterproof...
  • 24H Non-Stop Music: With Anker's world-renowned power management...
  • Powerful Sound: The speaker features 12W power...

As an affiliate, we earn on qualifying purchases.

Future Enhancements and User Feedback Integration

GitHub has indicated that it will continue refining the stacked PR feature based on user feedback. Planned updates include better visualization tools, more seamless integration with automation workflows, and expanded support for managing large dependency trees. Developers and teams are encouraged to adopt the feature and provide feedback to help shape future improvements. Expect incremental updates over the coming months aimed at enhancing usability and performance.

JBL Charge 6 Portable Bluetooth Speaker, Waterproof, Drop-Proof - Black

JBL Charge 6 Portable Bluetooth Speaker, Waterproof, Drop-Proof - Black

  • JBL PRO SOUND + AI BOOST: How does the already great...
  • 28-HOUR BATTERY: Keep the mood alive for...
  • IP68 WATERPROOF DESIGN: Have you ever dropped your...

As an affiliate, we earn on qualifying purchases.

Key Questions

How do I create a stacked PR on GitHub?

You can create a stacked PR by linking multiple PRs in the GitHub web interface or through command-line tools. The platform provides options to specify dependencies and view the hierarchy of linked PRs.

Can I convert existing PRs into a stack?

While there is no direct conversion tool, users can manually link existing PRs to form a stack by editing dependency links or creating new linked PRs that depend on previous ones.

Will stacked PRs affect review times?

Potentially, yes. While the feature aims to make reviews more manageable, managing multiple linked PRs may require additional coordination. Overall, it is expected to improve review efficiency for complex changes.

Are there limitations on the depth of PR stacks?

GitHub has not officially specified maximum stack depth, but some users report challenges with very deep hierarchies. Further updates may address these limitations.

Is this feature available for all GitHub plans?

Yes, support for stacked PRs is available across all GitHub plans, including free accounts, as part of the platform’s ongoing feature expansion.

Source: hn

You May Also Like

Government Orders GitHub To Remove Bluetooth-based Chat App Bitchat: Jack Dorsey

Authorities have instructed GitHub to remove the Bluetooth-based chat app Bitchat, citing security concerns. Jack Dorsey comments on the situation.

Fiber Optic HDMI Cables Explained

Learn how fiber optic HDMI cables deliver high-quality audio and video signals over long distances without interference, unlocking better home entertainment solutions.

Una GPS Smart Watch – Repairable, USB-C Charging, Developer-friendly

A new GPS smartwatch features repairability, USB-C charging, and developer-friendly design, signaling a shift toward sustainable and customizable wearable tech.