MCPcopy Create free account
hub / github.com/crashappsec/github-analyzer / WorkflowsAggregator

Function WorkflowsAggregator

pkg/github/utils/utils.go:76–89  ·  view source on GitHub ↗
(workflows *github.Workflows)

Source from the content-addressed store, hash-verified

74}
75
76func 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
91func GetPaginatedResult[T any, K any](
92 ctx context.Context,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected