RunApi

interface RunApi

Defines actions related to the API for managing runs.

Functions

Link copied to clipboard
@GET(value = "/")
abstract fun getRun(): Call<Run>

Retrieves information about a run.

@GET(value = "/actions/runs/{id}")
abstract fun getRun(@Query(value = "id") runId: RunId?): Call<Run>

Retrieves information about a specific run.

Link copied to clipboard
@POST(value = "complete")
abstract fun markRunAsCompleted(@Query(value = "at") atAsIso: String): Call<Run>

Marks a run as completed.

Link copied to clipboard
@POST
abstract fun markRunAsFailed(@Query(value = "at") atAsIso: String): Call<Run>

Marks a run as failed.

Link copied to clipboard
@POST(value = "start")
abstract fun markRunAsRunning(@Query(value = "at") atAsIso: String): Call<Run>

Marks a run as running.

Link copied to clipboard
@POST
abstract fun marRunAsAborted(@Query(value = "at") atAsIso: String): Call<Run>

Marks a run as aborted.