From 2ed8d9a77d9a1719d2e0add54367e505c5ee3c75 Mon Sep 17 00:00:00 2001 From: sourav-tw <115037780+sourav-tw@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:23:46 +0530 Subject: [PATCH] | When there are more than 30 branches in a repo, it is fetching the latest 30 and filtering the runs on those branches. This is causing issues. Detailed issue is raised at https://github.com/thoughtworks/metrik/issues/155 | --- .../project/infrastructure/github/feign/GithubFeignClient.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/kotlin/metrik/project/infrastructure/github/feign/GithubFeignClient.kt b/backend/src/main/kotlin/metrik/project/infrastructure/github/feign/GithubFeignClient.kt index c06e6e03..142244a9 100644 --- a/backend/src/main/kotlin/metrik/project/infrastructure/github/feign/GithubFeignClient.kt +++ b/backend/src/main/kotlin/metrik/project/infrastructure/github/feign/GithubFeignClient.kt @@ -55,6 +55,8 @@ interface GithubFeignClient { @RequestHeader("credential") credential: String, @PathVariable("owner") owner: String, @PathVariable("repo") repo: String, + @RequestParam("per_page", required = false) perPage: Int? = 100, + @RequestParam("page", required = false) pageIndex: Int? = 1 ): List? }