@@ -392,6 +392,7 @@ func Test_CreateIssue(t *testing.T) {
392392 assert .Contains (t , tool .InputSchema .Properties , "body" )
393393 assert .Contains (t , tool .InputSchema .Properties , "assignees" )
394394 assert .Contains (t , tool .InputSchema .Properties , "labels" )
395+ assert .Contains (t , tool .InputSchema .Properties , "milestone" )
395396 assert .ElementsMatch (t , tool .InputSchema .Required , []string {"owner" , "repo" , "title" })
396397
397398 // Setup mock issue for success case
@@ -403,6 +404,7 @@ func Test_CreateIssue(t *testing.T) {
403404 HTMLURL : github .Ptr ("https://github.com/owner/repo/issues/123" ),
404405 Assignees : []* github.User {{Login : github .Ptr ("user1" )}, {Login : github .Ptr ("user2" )}},
405406 Labels : []* github.Label {{Name : github .Ptr ("bug" )}, {Name : github .Ptr ("help wanted" )}},
407+ Milestone : & github.Milestone {Number : github .Ptr (5 )},
406408 }
407409
408410 tests := []struct {
@@ -423,6 +425,7 @@ func Test_CreateIssue(t *testing.T) {
423425 "body" : "This is a test issue" ,
424426 "labels" : []any {"bug" , "help wanted" },
425427 "assignees" : []any {"user1" , "user2" },
428+ "milestone" : float64 (5 ),
426429 }).andThen (
427430 mockResponse (t , http .StatusCreated , mockIssue ),
428431 ),
@@ -435,6 +438,7 @@ func Test_CreateIssue(t *testing.T) {
435438 "body" : "This is a test issue" ,
436439 "assignees" : []string {"user1" , "user2" },
437440 "labels" : []string {"bug" , "help wanted" },
441+ "milestone" : float64 (5 ),
438442 },
439443 expectError : false ,
440444 expectedIssue : mockIssue ,
0 commit comments