{
  "slug": "glab-mr-checkout-accepts-worktree-217276de217f",
  "title": "glab mr checkout accepts --worktree",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-20T12:17:01.108Z",
  "announced_at": "2026-10-20T12:17:01.108Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When checking out a merge request in a separate worktree, run `glab mr checkout` with the merge request ID and `--worktree <path>`. The worktree path is where glab checks out the merge request; rerunning with that path updates the existing worktree. [Official command documentation](https://docs.gitlab.com/cli/mr/checkout/)",
    "examples": [
      "glab mr checkout <id> --worktree <path>"
    ],
    "gotchas": [
      "Version: v1.124.0",
      "<id> | <branch> | <url>: Select the merge request to check out; the documented synopsis marks this argument optional.",
      "--worktree <path> (required): Check out the merge request into a Git worktree at the specified path; rerunning updates the existing worktree there."
    ]
  },
  "why_it_matters": "Check out a merge request in a separate worktree for repository development.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.124.0",
    "https://docs.gitlab.com/cli/mr/checkout/"
  ],
  "rank": 0.94036,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261026-04",
    "verdict_id": "daily-20261026-04:daily-20261026-04-e5065fc863512103-11:gate",
    "evidence_hash": "fa4a166337d26330beab73e6d1198ebd3afe3da9367c7e856bd71ba7d214416b"
  },
  "review": {
    "draft_hash": "4e15a08e789fe028be3b426820e8b0e73eaed59c9b319a82bf4252c3a74fbd38",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-20T12:17:01.108Z",
    "decision": "daily-20261026-04:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
