(workflows *github.Workflows)
| 74 | } |
| 75 | |
| 76 | func WorkflowsAggregator(workflows *github.Workflows) []types.Workflow { |
| 77 | var repoWorkflows []types.Workflow |
| 78 | for _, workflow := range workflows.Workflows { |
| 79 | w := types.Workflow{ |
| 80 | ID: workflow.ID, |
| 81 | Name: workflow.Name, |
| 82 | Path: workflow.Path, |
| 83 | State: workflow.State, |
| 84 | URL: workflow.URL, |
| 85 | } |
| 86 | repoWorkflows = append(repoWorkflows, w) |
| 87 | } |
| 88 | return repoWorkflows |
| 89 | } |
| 90 | |
| 91 | func GetPaginatedResult[T any, K any]( |
| 92 | ctx context.Context, |
nothing calls this directly
no outgoing calls
no test coverage detected