@@ -392,6 +392,7 @@ func Test_CreateIssue(t *testing.T) {
392
392
assert .Contains (t , tool .InputSchema .Properties , "body" )
393
393
assert .Contains (t , tool .InputSchema .Properties , "assignees" )
394
394
assert .Contains (t , tool .InputSchema .Properties , "labels" )
395
+ assert .Contains (t , tool .InputSchema .Properties , "milestone" )
395
396
assert .ElementsMatch (t , tool .InputSchema .Required , []string {"owner" , "repo" , "title" })
396
397
397
398
// Setup mock issue for success case
@@ -403,6 +404,7 @@ func Test_CreateIssue(t *testing.T) {
403
404
HTMLURL : github .Ptr ("https://github.com/owner/repo/issues/123" ),
404
405
Assignees : []* github.User {{Login : github .Ptr ("user1" )}, {Login : github .Ptr ("user2" )}},
405
406
Labels : []* github.Label {{Name : github .Ptr ("bug" )}, {Name : github .Ptr ("help wanted" )}},
407
+ Milestone : & github.Milestone {Number : github .Ptr (5 )},
406
408
}
407
409
408
410
tests := []struct {
@@ -423,6 +425,7 @@ func Test_CreateIssue(t *testing.T) {
423
425
"body" : "This is a test issue" ,
424
426
"labels" : []any {"bug" , "help wanted" },
425
427
"assignees" : []any {"user1" , "user2" },
428
+ "milestone" : float64 (5 ),
426
429
}).andThen (
427
430
mockResponse (t , http .StatusCreated , mockIssue ),
428
431
),
@@ -435,6 +438,7 @@ func Test_CreateIssue(t *testing.T) {
435
438
"body" : "This is a test issue" ,
436
439
"assignees" : []string {"user1" , "user2" },
437
440
"labels" : []string {"bug" , "help wanted" },
441
+ "milestone" : float64 (5 ),
438
442
},
439
443
expectError : false ,
440
444
expectedIssue : mockIssue ,
0 commit comments