From e41171fb17ccba98622ad87a2ec4114d5bcbb965 Mon Sep 17 00:00:00 2001 From: Dolev Hadar Date: Fri, 15 Mar 2024 15:26:23 +0200 Subject: [PATCH] fix: queries exceeding number of allowed nodes --- data/prapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/prapi.go b/data/prapi.go index 6bbcd73..aad315c 100644 --- a/data/prapi.go +++ b/data/prapi.go @@ -37,7 +37,7 @@ type PullRequestData struct { Assignees Assignees `graphql:"assignees(first: 3)"` Comments Comments `graphql:"comments(last: 5, orderBy: { field: UPDATED_AT, direction: DESC })"` LatestReviews Reviews `graphql:"latestReviews(last: 3)"` - ReviewThreads ReviewThreads `graphql:"reviewThreads(last: 100)"` + ReviewThreads ReviewThreads `graphql:"reviewThreads(last: 20)"` IsDraft bool Commits Commits `graphql:"commits(last: 1)"` } @@ -138,7 +138,7 @@ type ReviewThreads struct { StartLine int Line int Path string - Comments ReviewComments `graphql:"comments(first: 100)"` + Comments ReviewComments `graphql:"comments(first: 10)"` } }