{
  "slug": "gh-stack-adds-atomic-stack-merging-with-gh-stack-merge-0647b724a4c1",
  "title": "gh-stack adds atomic stack merging with gh stack merge",
  "tools": [
    "gh-stack"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-29T17:41:51.000Z",
  "announced_at": "2026-07-29T17:41:51.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If merging the current stack or a selected stack or PR, run `gh stack merge` with the appropriate optional target. Choose the merge extent and method interactively, or use `--yes` or a non-interactive terminal with a method flag to merge without prompts; the operation is all-or-nothing.",
    "examples": [
      "gh stack merge",
      "gh stack merge <stack-number> --yes --squash",
      "gh stack merge <pr-number> --yes --merge-method rebase"
    ],
    "gotchas": [
      "Version: v0.1.0",
      "[<stack-number>]: Selects a stack to merge even when it is not checked out; omitting the target uses the active local stack.",
      "[<pr-number>]: Selects a PR and merges every PR in its stack up to and including it.",
      "--yes / -y: Merge without prompting for confirmation; non-interactive terminals also run without prompting.",
      "--merge-method <method>: Sets the method to `merge`, `squash`, or `rebase`.",
      "--merge: Shorthand for the `merge` method.",
      "--squash: Shorthand for the `squash` method.",
      "--rebase: Shorthand for the `rebase` method.",
      "Prerequisite: Install with `gh extension install github/gh-stack`. Requires GitHub CLI (`gh`) 2.0 or later and Git 2.36 or later. Authenticate with `gh auth login` if not already authenticated.",
      "Prerequisite: Each PR must be open and not a draft. GitHub evaluates branch protection and repository rules during the merge.",
      "Interactive wizard is for terminal use.",
      "The wizard offers only merge methods allowed by the repository and defaults to the last-used method."
    ]
  },
  "why_it_matters": "Merge the current stack or a selected stack or pull request into its base branch.",
  "sources": [
    "https://github.com/github/gh-stack/releases/tag/v0.1.0",
    "https://github.com/github/docs/blob/main/content/pull-requests/reference/stacked-prs-cli-commands.md"
  ],
  "rank": 0.95061,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "recover-20261008",
    "verdict_id": "recover-20261008:recover-20261008-a62f83f103cd8e00-0:gate",
    "evidence_hash": "45f0e803ed95f01969db5f0285a4d99a3100602229b280733d48024fa42876d5"
  },
  "review": {
    "draft_hash": "ffad6a7f916009c46f886bb985d1ddd4d6b706274bbd6db31f3bf131530dbf77",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "recover-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
