cli/pkg/cmd/issue/close
Takeshi 01c83acfe8 Add --duplicate-of flag and duplicate reason to gh issue close
Support closing issues as duplicates via --reason duplicate and
--duplicate-of <issue> flags. The --duplicate-of flag accepts an issue
number or URL, validates it references a different issue (not a PR),
and passes the duplicate issue ID to the closeIssue mutation.

Feature detection checks whether the GHES instance supports the
DUPLICATE enum value in IssueClosedStateReason before using it.
2026-02-28 20:10:07 -05:00
..
close.go Add --duplicate-of flag and duplicate reason to gh issue close 2026-02-28 20:10:07 -05:00
close_test.go Add --duplicate-of flag and duplicate reason to gh issue close 2026-02-28 20:10:07 -05:00