{
  "id": 717008,
  "title": "GitHub Stacks in Jujutsu",
  "url": "https://urgent.news/2026/08/13/github-stacks-in-jujutsu",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-13T00:55:03.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://alan.norbauer.com/articles/github-stacks-with-jujutsu/"
  },
  "original_language": "en",
  "account": "On 2026-07-30, GitHub released its stacked pull request (PR) feature into public preview, targeting git users but also providing documented support for other git-compatible version control systems like Jujutsu (jj). This article serves as a primer for using GitHub stacks with jj, reusing some jj aliases and revset aliases defined in a previous article.\n\nGitHub's stacked PRs require every PR to have a jj bookmark (git branch), necessitating the creation of numerous bookmarks. Currently, UI tools will not automate this process, but users can learn jj aliases to manage these bookmarks easily. The article explains how to customize the behavior of the bookmark-advance-to revset by overriding it, allowing users to advance the bookmark to a code commit below a commit with new code.\n\nThe gh stack CLI offers several subcommands, primarily managing or consuming local tracking of the stack in a jj repo. Users will primarily use the few subcommands that manage the remote stack on GitHub, such as link, push, etc. To create a bookmark for each commit in the stack, users upload their bookmarks to GitHub, create draft PRs for each, and link them into a stack. Alternatively, users can link the entire stack by going to the top where the stack and substack are the same thing.\n\nIt's important to note that users cannot add to the middle of a stack, as this will result in an error stating that new PRs must be added to the top of the existing stack. Therefore, users must delete their stack and recreate it. Assuming the new commit is change id abc, users must delete their stack and recreate it. Additionally, deleting the remote branch closes its PR, so users should delete the branch before re-running gh stack link to avoid closing the PR above the removed branch.\n\nUnstacking, while theoretically possible, is complicated and should be done from the web UI instead. There are likely ways to improve these workflows, but the article emphasizes that as it stands, the feature works reasonably well. The author expresses excitement about the potential of PR stacks in GitHub and acknowledges the room for improvement.",
  "summary": "GitHub has introduced stacked pull requests (PRs) into public preview, targeting git users but offering documented support for other git-compatible version control systems like Jujutsu (jj). This feature allows users to manage multiple PRs as a single stack, simplifying the process of coordinating changes across different commits. The article provides a guide on using GitHub stacks with jj, highlighting the need to create bookmarks for each commit in the stack and linking them to GitHub to create draft PRs. Users are advised to use the `gh stack link` command to link the entire stack, rather than adding to the middle of an existing stack, which is not supported. The implementation of stacked PRs in GitHub is described as unambitious, as it relies on the existing, flawed model of GitHub PRs without addressing foundational issues.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}