{
  "slug": "gh-issue-close-links-duplicates-and-sets-the-duplicate-reason-a29ae44864c1",
  "title": "gh issue close links duplicates and sets the duplicate reason",
  "tools": [
    "gh"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-10T19:40:45.000Z",
  "announced_at": "2026-03-10T19:40:45.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When closing an issue as a duplicate, run `gh issue close` with `--duplicate-of` and the original issue number or URL to link it. To set the duplicate close reason without linking an issue, use `--reason duplicate`.",
    "examples": [
      "gh issue close <issue-number> --duplicate-of <original-issue-number-or-url>",
      "gh issue close <issue-number> --reason duplicate"
    ],
    "gotchas": [
      "Version: v2.88.0",
      "<number> | <url> (required): Issue to close; provide its number or URL.",
      "--duplicate-of <string>: Mark the issue as a duplicate of another issue by number or URL.",
      "--reason <string>: Close reason: `completed`, `not planned`, or `duplicate`.",
      "Prerequisite: Authenticate `gh` with a GitHub host before use.",
      "Prerequisite: With `--duplicate-of`, the referenced item must be an issue; the v2.88.0 source rejects pull requests and the current issue itself.",
      "`--duplicate-of` accepts an issue number or URL."
    ]
  },
  "why_it_matters": "Close a repository issue as a duplicate while maintaining its issue status.",
  "sources": [
    "https://github.com/cli/cli/releases/tag/v2.88.0",
    "https://cli.github.com/manual/gh_issue_close",
    "https://github.com/cli/cli/blob/v2.88.0/pkg/cmd/issue/close/close.go",
    "https://cli.github.com/manual/gh_auth_login"
  ],
  "rank": 0.99025,
  "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": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-5cebced2cbd56609-1:gate",
    "evidence_hash": "588ebed23042735e024c4fc5688de7c649d9ef35fbf44996438937d6c7da4751"
  },
  "review": {
    "draft_hash": "1a16f106e5ceb245a6b90923874caea513086687192863d370b6eb717a7c1d60",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.99 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
