From 33b18b32ff6bf68b8fe67bc7707e4775c4601a90 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Sun, 20 Jul 2025 19:19:56 +0500 Subject: [PATCH] Add custom api to fix runner reponse model --- .../org/gitnex/tea4j/v2/apis/custom/CustomApi.java | 10 ++++++++++ .../org/gitnex/tea4j/v2/apis/custom/CustomApi.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java b/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java index e8d89fa..66c11cf 100644 --- a/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java +++ b/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java @@ -135,4 +135,14 @@ public interface CustomApi { @retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("order_by") String sort); + + @GET("repos/{owner}/{repo}/actions/runners/{runner_id}") + Call customGetRepoRunner( + @retrofit2.http.Path("owner") String owner, + @retrofit2.http.Path("repo") String repo, + @retrofit2.http.Path("runner_id") String runnerId); + + @GET("repos/{owner}/{repo}/actions/runners") + Call customGetRepoRunners( + @retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo); } diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java index 02d69cb..a753bc0 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java @@ -139,4 +139,14 @@ public interface CustomApi { @retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("order_by") String sort); + + @GET("repos/{owner}/{repo}/actions/runners/{runner_id}") + Call customGetRepoRunner( + @retrofit2.http.Path("owner") String owner, + @retrofit2.http.Path("repo") String repo, + @retrofit2.http.Path("runner_id") String runnerId); + + @GET("repos/{owner}/{repo}/actions/runners") + Call customGetRepoRunners( + @retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo); }