@@ -646,6 +646,7 @@ func Test_ListCommits(t *testing.T) {
646646 assert .Contains (t , tool .InputSchema .Properties , "owner" )
647647 assert .Contains (t , tool .InputSchema .Properties , "repo" )
648648 assert .Contains (t , tool .InputSchema .Properties , "sha" )
649+ assert .Contains (t , tool .InputSchema .Properties , "author" )
649650 assert .Contains (t , tool .InputSchema .Properties , "page" )
650651 assert .Contains (t , tool .InputSchema .Properties , "perPage" )
651652 assert .ElementsMatch (t , tool .InputSchema .Required , []string {"owner" , "repo" })
@@ -713,6 +714,7 @@ func Test_ListCommits(t *testing.T) {
713714 mock .WithRequestMatchHandler (
714715 mock .GetReposCommitsByOwnerByRepo ,
715716 expectQueryParams (t , map [string ]string {
717+ "author" : "username" ,
716718 "sha" : "main" ,
717719 "page" : "1" ,
718720 "per_page" : "30" ,
@@ -722,9 +724,10 @@ func Test_ListCommits(t *testing.T) {
722724 ),
723725 ),
724726 requestArgs : map [string ]interface {}{
725- "owner" : "owner" ,
726- "repo" : "repo" ,
727- "sha" : "main" ,
727+ "owner" : "owner" ,
728+ "repo" : "repo" ,
729+ "sha" : "main" ,
730+ "author" : "username" ,
728731 },
729732 expectError : false ,
730733 expectedCommits : mockCommits ,
@@ -801,6 +804,7 @@ func Test_ListCommits(t *testing.T) {
801804 require .NoError (t , err )
802805 assert .Len (t , returnedCommits , len (tc .expectedCommits ))
803806 for i , commit := range returnedCommits {
807+ assert .Equal (t , * tc .expectedCommits [i ].Author , * commit .Author )
804808 assert .Equal (t , * tc .expectedCommits [i ].SHA , * commit .SHA )
805809 assert .Equal (t , * tc .expectedCommits [i ].Commit .Message , * commit .Commit .Message )
806810 assert .Equal (t , * tc .expectedCommits [i ].Author .Login , * commit .Author .Login )
0 commit comments