@@ -732,6 +732,8 @@ func Test_GetPullRequestFiles(t *testing.T) {
732732 assert .Contains (t , tool .InputSchema .Properties , "owner" )
733733 assert .Contains (t , tool .InputSchema .Properties , "repo" )
734734 assert .Contains (t , tool .InputSchema .Properties , "pullNumber" )
735+ assert .Contains (t , tool .InputSchema .Properties , "page" )
736+ assert .Contains (t , tool .InputSchema .Properties , "perPage" )
735737 assert .ElementsMatch (t , tool .InputSchema .Required , []string {"owner" , "repo" , "pullNumber" })
736738
737739 // Setup mock PR files for success case
@@ -778,6 +780,24 @@ func Test_GetPullRequestFiles(t *testing.T) {
778780 expectError : false ,
779781 expectedFiles : mockFiles ,
780782 },
783+ {
784+ name : "successful files fetch with pagination" ,
785+ mockedClient : mock .NewMockedHTTPClient (
786+ mock .WithRequestMatch (
787+ mock .GetReposPullsFilesByOwnerByRepoByPullNumber ,
788+ mockFiles ,
789+ ),
790+ ),
791+ requestArgs : map [string ]interface {}{
792+ "owner" : "owner" ,
793+ "repo" : "repo" ,
794+ "pullNumber" : float64 (42 ),
795+ "page" : float64 (2 ),
796+ "perPage" : float64 (10 ),
797+ },
798+ expectError : false ,
799+ expectedFiles : mockFiles ,
800+ },
781801 {
782802 name : "files fetch fails" ,
783803 mockedClient : mock .NewMockedHTTPClient (
0 commit comments