Skip to content

Commit dc83db6

Browse files
committed
Fixed a typo which caused a bug. WorkflowRuns url was missing a 's'
1 parent 71d2824 commit dc83db6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/spotify/github/v3/clients/WorkflowRunsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*/
3838
public class WorkflowRunsClient {
3939
private static final String LIST_REPOSITORY_WORKFLOW_RUNS_URI = "/repos/%s/%s/actions/runs";
40-
private static final String LIST_WORKFLOW_RUNS_URI = "/repos/%s/%s/actions/workflow/%s/runs";
40+
private static final String LIST_WORKFLOW_RUNS_URI = "/repos/%s/%s/actions/workflows/%s/runs";
4141
private static final String GET_WORKFLOW_RUN_URI = "/repos/%s/%s/actions/runs/%s";
4242

4343
private final GitHubClient github;

src/test/java/com/spotify/github/v3/clients/WorkflowRunsClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void listWorkflowRunsFiltered() throws Exception {
212212
final CompletableFuture<WorkflowRunsResponseList> actualResponse =
213213
workflowRunsClient.listWorkflowRuns(159038, params);
214214

215-
assertThat(pathCaptor.getValue(), is("/repos/someowner/somerepo/actions/workflow/159038/runs?status=completed"));
215+
assertThat(pathCaptor.getValue(), is("/repos/someowner/somerepo/actions/workflows/159038/runs?status=completed"));
216216

217217
assertThat(actualResponse.get().totalCount(), is(1));
218218
assertThat(actualResponse.get().workflowRuns().size(), is(1));

0 commit comments

Comments
 (0)