Merge pull request 'Add custom api to fix runner reponse model' (#37) from add-endpoint into main

Reviewed-on: https://codeberg.org/gitnex/tea4j-autodeploy/pulls/37
This commit is contained in:
M M Arif
2025-07-20 16:20:51 +02:00
2 changed files with 20 additions and 0 deletions
@@ -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<ActionRunner> 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<ActionRunnersResponse> customGetRepoRunners(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
}
@@ -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<ActionRunner> 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<ActionRunnersResponse> customGetRepoRunners(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
}