Package com.spotify.github.v3.clients
Class WorkflowsClient
- java.lang.Object
-
- com.spotify.github.v3.clients.WorkflowsClient
-
public class WorkflowsClient extends Object
Workflows API client
-
-
Constructor Summary
Constructors Constructor Description WorkflowsClient(GitHubClient github, String owner, String repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<WorkflowsResponse>
getWorkflow(int id)
Gets a workflow by id.CompletableFuture<WorkflowsRepositoryResponseList>
listWorkflows()
List workflows for a repository.
-
-
-
Constructor Detail
-
WorkflowsClient
public WorkflowsClient(GitHubClient github, String owner, String repo)
-
-
Method Detail
-
listWorkflows
public CompletableFuture<WorkflowsRepositoryResponseList> listWorkflows()
List workflows for a repository.- Returns:
- a list of workflows for the repository
-
getWorkflow
public CompletableFuture<WorkflowsResponse> getWorkflow(int id)
Gets a workflow by id.- Parameters:
id
- the workflow id- Returns:
- a WorkflowsResponse
-
-