mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Add custom api to fix runner reponse model
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user