megachangelog
Announcement

Stacked pull requests generally available

Stacked pull requests are now generally available, allowing users to break large changes into smaller, focused pull requests that can be reviewed independently and merged together.

GitHub stacked pull requests are now generally available. Break large changes into smaller, focused pull requests that you can review independently and merge together.

Since the feature went into public preview, repositories using stacks have seen a 9% increase in merged code compared to peers. Over two-thirds of the top 1% of repos now use stacked pull requests and have seen a 5% improvement in time-to-merge.

With this general availability release, we’re introducing several improvements to make stacks easier to create, review, and merge. Thank you to everyone who provided feedback and input during the preview period.

More flexible merging and rebasing

  • Approvals stay in place for unchanged code. When an otherwise unchanged stack is updated after its base branch, such as main, moves ahead, Rebase stack now preserves approvals, even in repositories that dismiss stale approvals.
  • Rebased commits stay signed. GitHub creates signed replacement commits during Rebase stack, preserving original authorship. Automatic rebases after partial merges also sign replacement commits when branch rules require signatures or any original commit was signed.
  • Bypass permissions apply to stacks. Users with permission to bypass repository rules can now use those permissions to merge the lowest unmerged pull request in a stack.
  • More consistent stack merging. A stack now enters and lands through the merge queue as a single merge group. When using the merge commit method, GitHub now creates one merge commit per pull request instead of one for the entire merged group.
  • Branching stacks retarget automatically. When a stack’s base branch is deleted, GitHub automatically retargets the stack instead of closing its bottom pull request. This supports workflows where one stack branches off another.
  • Auto-merge for stacks rolling out over the next few weeks. Stacked pull requests can be set to merge automatically once the repository’s merge requirements are met. Select a group of pull requests and they will all merge together once all the pull requests are ready to merge.

Stack navigation and automation

  • Stack context stays visible. Stack information is now always visible in the pull request page’s persistent header. View details about the stack that a pull request belongs to from the pull requests list view.
  • Keyboard shortcuts. Use Shift+J and Shift+K shortcuts to navigate between pull requests in a stack.
  • Stack membership lifecycle. View events in the timeline for when a pull request was added or removed from a stack. The pull_request webhook now includes a stacked action when a pull request joins a stack.
  • CLI and agent workflows support more ways to work. The gh stack extension for GitHub CLI now supports Git worktrees and includes several improvements to speed up initialization, checkout, and navigation.

Get started

Stacked pull requests are available on all github.com plans and will be included in an upcoming GitHub Enterprise Server release.

Check out the stacked pull requests documentation to learn more about the feature and how to get started.

The post Stacked pull requests generally available appeared first on The GitHub Blog.

pull-requestsworkflowcollaborationfeatures

Source: original entry ↗

More from GitHub

Follow GitHub to get its new changes in your feed and email digest.

Announcement

Claude Haiku 5.5 now available in GitHub Copilot

Claude Haiku 5.5, Anthropic's lightweight model, is now generally available in GitHub Copilot for fast, high-volume tasks like subagents, quick edits, and terminal operations.

copilotaimodelsannouncement
Feature

Purpose-built model for leaked secret detection

GitHub introduced a new purpose-built model for detecting leaked secrets that provides context-aware detection to keep pace with modern software development practices, including AI-assisted coding.

securitysecret-detectionaiprotection
Announcement

Local sandboxing for GitHub Copilot now generally available

GitHub Copilot's local sandboxing feature is now generally available across GitHub Copilot CLI, the GitHub Copilot app, and VS Code sessions using Agent Host, providing developers with a secure environment for testing and development.

copilotaisecuritysandboxvscode
See all GitHub changes →