(hooks []*github.Hook)
| 56 | } |
| 57 | |
| 58 | func WebhooksAggregator(hooks []*github.Hook) []types.Webhook { |
| 59 | var webhooks []types.Webhook |
| 60 | for _, hook := range hooks { |
| 61 | wh := types.Webhook{ |
| 62 | URL: hook.URL, |
| 63 | ID: hook.ID, |
| 64 | Type: hook.Type, |
| 65 | Name: hook.Name, |
| 66 | TestURL: hook.TestURL, |
| 67 | PingURL: hook.PingURL, |
| 68 | Config: hook.Config, |
| 69 | Active: hook.Active, |
| 70 | } |
| 71 | webhooks = append(webhooks, wh) |
| 72 | } |
| 73 | return webhooks |
| 74 | } |
| 75 | |
| 76 | func WorkflowsAggregator(workflows *github.Workflows) []types.Workflow { |
| 77 | var repoWorkflows []types.Workflow |
nothing calls this directly
no outgoing calls
no test coverage detected