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

Function WebhooksAggregator

pkg/github/utils/utils.go:58–74  ·  view source on GitHub ↗
(hooks []*github.Hook)

Source from the content-addressed store, hash-verified

56}
57
58func 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
76func WorkflowsAggregator(workflows *github.Workflows) []types.Workflow {
77 var repoWorkflows []types.Workflow

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected