@@ -337,19 +337,19 @@ func GetPullRequestReviewComments(ctx context.Context, gqlClient *githubv4.Clien
337337 return utils .NewToolResultError (fmt .Sprintf ("invalid pagination parameters: %v" , err )), nil
338338 }
339339
340- // Default to 100 threads if not specified, max is 100 for GraphQL
341- perPage := int32 (100 )
340+ // Default to 30 threads if not specified, max is 100 for GraphQL
341+ perPage := int32 (30 )
342342 if gqlParams .First != nil && * gqlParams .First > 0 {
343343 perPage = * gqlParams .First
344344 }
345345
346346 // Build variables for GraphQL query
347- vars := map [string ]interface {} {
347+ vars := map [string ]any {
348348 "owner" : githubv4 .String (owner ),
349349 "repo" : githubv4 .String (repo ),
350350 "prNum" : githubv4 .Int (int32 (pullNumber )), //nolint:gosec // pullNumber is controlled by user input validation
351351 "first" : githubv4 .Int (perPage ),
352- "commentsPerThread" : githubv4 .Int (50 ), // Max 50 comments per thread
352+ "commentsPerThread" : githubv4 .Int (50 ),
353353 }
354354
355355 // Add cursor if provided
@@ -398,9 +398,9 @@ func GetPullRequestReviewComments(ctx context.Context, gqlClient *githubv4.Clien
398398 }
399399
400400 // Build response with review threads and pagination info
401- response := map [string ]interface {} {
401+ response := map [string ]any {
402402 "reviewThreads" : query .Repository .PullRequest .ReviewThreads .Nodes ,
403- "pageInfo" : map [string ]interface {} {
403+ "pageInfo" : map [string ]any {
404404 "hasNextPage" : query .Repository .PullRequest .ReviewThreads .PageInfo .HasNextPage ,
405405 "hasPreviousPage" : query .Repository .PullRequest .ReviewThreads .PageInfo .HasPreviousPage ,
406406 "startCursor" : string (query .Repository .PullRequest .ReviewThreads .PageInfo .StartCursor ),
@@ -777,7 +777,7 @@ func UpdatePullRequest(getClient GetClientFn, getGQLClient GetGQLClientFn, t tra
777777 } `graphql:"repository(owner: $owner, name: $repo)"`
778778 }
779779
780- err = gqlClient .Query (ctx , & prQuery , map [string ]interface {} {
780+ err = gqlClient .Query (ctx , & prQuery , map [string ]any {
781781 "owner" : githubv4 .String (owner ),
782782 "repo" : githubv4 .String (repo ),
783783 "prNum" : githubv4 .Int (pullNumber ), // #nosec G115 - pull request numbers are always small positive integers
0 commit comments