mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-11 20:10:43 +00:00
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:
@@ -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