Skip to content

Commit a916714

Browse files
authored
issues can now be closed as duplicate (#741)
Recently, GitHub added the ability to [explicitly close an issue as a duplicate](https://github.blog/changelog/2024-12-12-github-issues-projects-close-issue-as-a-duplicate-rest-api-for-sub-issues-and-more/#close-an-issue-as-a-duplicate). When you close an issue as a duplicate, in addition to linking it to the issue and putting an event in the timeline, it _also_ sets the the issue state reason to `duplicate`. I cannot find this behavior documented in the current GitHub API docs, but I have seen it in the wild on a few recent issues in the rust-analyzer repository.
1 parent fae5b08 commit a916714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/models/issues.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub enum IssueStateReason {
7171
Completed,
7272
NotPlanned,
7373
Reopened,
74+
Duplicate,
7475
}
7576

7677
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]

0 commit comments

Comments
 (0)