Skip to content

Commit

Permalink
Fixed a typo which caused a bug. WorkflowRuns url was missing a 's'
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulamin committed Jan 22, 2025
1 parent 71d2824 commit dc83db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public class WorkflowRunsClient {
private static final String LIST_REPOSITORY_WORKFLOW_RUNS_URI = "/repos/%s/%s/actions/runs";
private static final String LIST_WORKFLOW_RUNS_URI = "/repos/%s/%s/actions/workflow/%s/runs";
private static final String LIST_WORKFLOW_RUNS_URI = "/repos/%s/%s/actions/workflows/%s/runs";
private static final String GET_WORKFLOW_RUN_URI = "/repos/%s/%s/actions/runs/%s";

private final GitHubClient github;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public void listWorkflowRunsFiltered() throws Exception {
final CompletableFuture<WorkflowRunsResponseList> actualResponse =
workflowRunsClient.listWorkflowRuns(159038, params);

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

assertThat(actualResponse.get().totalCount(), is(1));
assertThat(actualResponse.get().workflowRuns().size(), is(1));
Expand Down

0 comments on commit dc83db6

Please sign in to comment.