sincecutoff.com
← all changes

gh issue close links duplicates and sets the duplicate reason

Introduced 2026-03-10 · score 0.99

HOW TO USE IT

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`.

gh issue close <issue-number> --duplicate-of <original-issue-number-or-url>
gh issue close <issue-number> --reason duplicate

WHY THIS HELPS

Close a repository issue as a duplicate while maintaining its issue status.

REQUIREMENTS AND LIMITATIONS

  • 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.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card