A Chrome extension that groups stacked pull requests in the GitHub PR list into a single expandable row.
Not affiliated with or endorsed by GitHub.
Before:
After:
A PR whose base branch is another PR's head branch is treated as part of that PR's stack. The stack shows as one row under its root PR; click the chevron to expand it.
From source (Chrome, Edge, or any Chromium browser):
- Clone this repository.
- Open
chrome://extensionsand enable Developer mode. - Click Load unpacked and select the repository folder.
- Open any repository's
/pullspage on github.com.
Use the toolbar popup to turn grouping on or off. When off, the toolbar icon shows an OFF badge and the PR list is left unchanged.
For each PR in the list, the content script fetches its hovercard from github.com to read the base and head branches, then nests PRs whose base matches another PR's head. Branch names are cached locally for 30 days so a reload can group rows immediately. No data leaves your browser. See PRIVACY.md.
GitHub does not expose a stack identifier, so grouping relies on branch relationships and on GitHub's current list markup; a GitHub UI change may break it.
npm run packageCreates dist/github-pr-stack-extension.zip for upload to the Chrome Web Store.

