File tree Expand file tree Collapse file tree 2 files changed +294
-81
lines changed Expand file tree Collapse file tree 2 files changed +294
-81
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ import (
1818 "github.com/shurcooL/githubv4"
1919)
2020
21- // Custom GraphQL structs for closing issues as duplicate
22- // These extend the githubv4 library which is missing this functionality
23-
24- // Local definition matching GitHub's GraphQL schema for closing issues
21+ // CloseIssueInput represents the input for closing an issue via the GraphQL API.
22+ // Used to extend the functionality of the githubv4 library to support closing issues as duplicates.
2523type CloseIssueInput struct {
2624 IssueID githubv4.ID `json:"issueId"`
2725 ClientMutationID * githubv4.String `json:"clientMutationId,omitempty"`
2826 StateReason * IssueClosedStateReason `json:"stateReason,omitempty"`
2927 DuplicateIssueID * githubv4.ID `json:"duplicateIssueId,omitempty"`
3028}
3129
30+ // IssueClosedStateReason represents the reason an issue was closed.
31+ // Used to extend the functionality of the githubv4 library to support closing issues as duplicates.
3232type IssueClosedStateReason string
3333
3434const (
You can’t perform that action at this time.
0 commit comments