Paul Krill
Editor at Large

GitHub pushes stacked pull requests into public preview

news
Aug 3, 20262 mins

Stacked pull requests break up large code changes into smaller pull requests that can be reviewed more quickly and easily.

Advancing on software development, GitHub has announced the public preview of stacked pull requests.

The public preview was announced July 30.

Stacked pull requests break large changes into a chain of smaller, dependent pull requests. A stacked pull request is an ordered series of pull requests that each represent focused layers of a change,” GitHub said in the announcement. The goal is to make pull requests easier to review, and to avoid splitting work across multiple branches that must be continually rebased.

According to GitHub, teams can:

  • Keep large changes moving by reviewing short, narrowly scoped pull requests in parallel.
  • Maintain quality across every layer by using focused pull request reviews alongside each branch protections to protect main.
  • Merge some, one, or all by landing an entire stack altogether or individual layers one at a time.

Using stacked pull requests requires the gh stack extension fo the GitHub CLI. Developers can install the extension with the following command:

gh extension install github/gh-stack

In what may have been a response to the rising tide of AI-generated code, GitHub announced stacked pull requests in April.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author