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); }