{
  "slug": "gh-stack-commands-reference-stacks-by-number-a284b3dc9565",
  "title": "gh-stack commands reference stacks by number",
  "tools": [
    "gh-stack"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-15T17:28:54.000Z",
  "announced_at": "2026-07-15T17:28:54.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When checking out or unstacking a tracked stack by its GitHub UI number, use that number: run `gh stack checkout <stack-number>` to check it out or `gh stack unstack <stack-number>` to unstack it. Find the number in the GitHub UI or gh-stack output.",
    "examples": [
      "gh stack checkout <stack-number>",
      "gh stack unstack <stack-number>"
    ],
    "gotchas": [
      "Version: v0.0.8",
      "<stack-number> (checkout): A stack number; checkout also accepts a PR number, PR URL, or branch. A bare number is matched as a stack or PR number before being tried as a branch name.",
      "<stack-number> (unstack): The GitHub UI stack number; targets that stack from anywhere in the repository. If omitted, targets the active stack.",
      "Prerequisite: Install the extension with `gh extension install github/gh-stack`; requires GitHub CLI (`gh`) v2.0+.",
      "Prerequisite: Stacked PRs must be enabled for the repository. Authenticate with GitHub CLI to run stack operations."
    ]
  },
  "why_it_matters": "When checking out or unstacking a tracked stack by its GitHub stack UI identifier, use its stack number.",
  "sources": [
    "https://github.com/github/gh-stack/releases/tag/v0.0.8",
    "https://github.com/github/gh-stack/blob/v0.0.8/README.md"
  ],
  "rank": 0.9205,
  "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-00890c982ae52383-1:gate",
    "evidence_hash": "8c610ca63f990c218a1377571bfb0983cda993b4d2b1250db23b2885d99ca55f"
  },
  "review": {
    "draft_hash": "9ad052abf8fc6e94342d2443ee942084ed2220202ba5372cbe20af843226277a",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "recover-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
