Skip to content

Commit 21ddc1d

Browse files
authored
add issues write support
1 parent 2fcbc88 commit 21ddc1d

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/github/issues.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ type issueFieldMetadataOption struct {
4848
}
4949

5050
type issueFieldMetadataNode struct {
51-
DatabaseID githubv4.Int `graphql:"databaseId"`
52-
Name githubv4.String
53-
DataType githubv4.String
51+
DatabaseID githubv4.Int `graphql:"databaseId"`
52+
Name githubv4.String
53+
DataType githubv4.String
5454
SingleSelectField struct {
5555
Options []issueFieldMetadataOption `graphql:"options"`
5656
} `graphql:"... on IssueFieldSingleSelect"`

pkg/github/issues_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -812,13 +812,13 @@ func Test_CreateIssue(t *testing.T) {
812812
}
813813

814814
tests := []struct {
815-
name string
816-
mockedClient *http.Client
815+
name string
816+
mockedClient *http.Client
817817
mockedGQLClient *http.Client
818-
requestArgs map[string]any
819-
expectError bool
820-
expectedIssue *github.Issue
821-
expectedErrMsg string
818+
requestArgs map[string]any
819+
expectError bool
820+
expectedIssue *github.Issue
821+
expectedErrMsg string
822822
}{
823823
{
824824
name: "successful issue creation with all fields",
@@ -1685,7 +1685,7 @@ func Test_UpdateIssue(t *testing.T) {
16851685
"databaseId": 101,
16861686
"name": "Priority",
16871687
"dataType": "single_select",
1688-
"options": []map[string]any{{"databaseId": 9001, "name": "P1"}},
1688+
"options": []map[string]any{{"databaseId": 9001, "name": "P1"}},
16891689
},
16901690
{
16911691
"databaseId": 102,

0 commit comments

Comments
 (0)