Skip to content

Commit

Permalink
Update ListRepositoryWorkflowRuns to support all query parameters (go…
Browse files Browse the repository at this point in the history
  • Loading branch information
acburdine authored Apr 20, 2020
1 parent 1a79474 commit 8db2a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion github/actions_workflow_runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *ActionsService) ListWorkflowRunsByFileName(ctx context.Context, owner,
// ListRepositoryWorkflowRuns lists all workflow runs for a repository.
//
// GitHub API docs: https://developer.github.com/v3/actions/workflow_runs/#list-repository-workflow-runs
func (s *ActionsService) ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListOptions) (*WorkflowRuns, *Response, error) {
func (s *ActionsService) ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) {
u := fmt.Sprintf("repos/%s/%s/actions/runs", owner, repo)
u, err := addOptions(u, opts)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion github/actions_workflow_runs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func TestActionService_ListRepositoryWorkflowRuns(t *testing.T) {

})

opts := &ListOptions{Page: 2, PerPage: 2}
opts := &ListWorkflowRunsOptions{ListOptions: ListOptions{Page: 2, PerPage: 2}}
runs, _, err := client.Actions.ListRepositoryWorkflowRuns(context.Background(), "o", "r", opts)

if err != nil {
Expand Down

0 comments on commit 8db2a0b

Please sign in to comment.