From fcfa540f7ca28b22cd14618f3b23afd6b441c04f Mon Sep 17 00:00:00 2001 From: Ritik Kapoor Date: Tue, 20 Aug 2024 21:41:04 +0000 Subject: [PATCH] update: [code-2195] increase limit of get checks for commit to 100 (#2542) * update: [code-2195] increase limit of get checks for commit to 100 --- web/src/hooks/usePRChecksDecision.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/hooks/usePRChecksDecision.tsx b/web/src/hooks/usePRChecksDecision.tsx index b3b3e63e9..5d21d9353 100644 --- a/web/src/hooks/usePRChecksDecision.tsx +++ b/web/src/hooks/usePRChecksDecision.tsx @@ -29,6 +29,7 @@ export function usePRChecksDecision({ const { data, error, refetch } = useListStatusCheckResults({ repo_ref: `${repoMetadata?.path as string}/+`, commit_sha: pullReqMetadata?.source_sha as string, + queryParams: { limit: 100 }, lazy: !repoMetadata?.path || !pullReqMetadata?.source_sha }) const [count, setCount] = useState(DEFAULT_COUNTS)