Skip to content

Commit fc20058

Browse files
committed
refactor and improve tests
1 parent e58c822 commit fc20058

File tree

2 files changed

+294
-81
lines changed

2 files changed

+294
-81
lines changed

pkg/github/issues.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.
2523
type 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.
3232
type IssueClosedStateReason string
3333

3434
const (

0 commit comments

Comments
 (0)