Skip to content

Commit ccd5b96

Browse files
authored
add issues write support
1 parent 562f865 commit ccd5b96

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
@@ -49,9 +49,9 @@ type issueFieldMetadataOption struct {
4949
}
5050

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

pkg/github/issues_test.go

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

10951095
tests := []struct {
1096-
name string
1097-
mockedClient *http.Client
1096+
name string
1097+
mockedClient *http.Client
10981098
mockedGQLClient *http.Client
1099-
requestArgs map[string]any
1100-
expectError bool
1101-
expectedIssue *github.Issue
1102-
expectedErrMsg string
1099+
requestArgs map[string]any
1100+
expectError bool
1101+
expectedIssue *github.Issue
1102+
expectedErrMsg string
11031103
}{
11041104
{
11051105
name: "successful issue creation with all fields",
@@ -2095,7 +2095,7 @@ func Test_UpdateIssue(t *testing.T) {
20952095
"databaseId": 101,
20962096
"name": "Priority",
20972097
"dataType": "single_select",
2098-
"options": []map[string]any{{"databaseId": 9001, "name": "P1"}},
2098+
"options": []map[string]any{{"databaseId": 9001, "name": "P1"}},
20992099
},
21002100
{
21012101
"databaseId": 102,

0 commit comments

Comments
 (0)