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

Function InstallsAggregator

pkg/github/utils/utils.go:32–56  ·  view source on GitHub ↗
(
	installs *github.OrganizationInstallations,
)

Source from the content-addressed store, hash-verified

30}
31
32func InstallsAggregator(
33 installs *github.OrganizationInstallations,
34) []types.Install {
35 var orgInstalls []types.Install
36
37 for _, install := range installs.Installations {
38 in := types.Install{
39 ID: install.ID,
40 AppID: install.AppID,
41 AppSlug: install.AppSlug,
42 NodeID: install.NodeID,
43 TargetID: install.TargetID,
44 Account: install.Account,
45 TargetType: install.TargetType,
46 RepositorySelection: install.RepositorySelection,
47 Permissions: install.Permissions,
48 CreatedAt: install.CreatedAt,
49 HasMultipleSingleFiles: install.HasMultipleSingleFiles,
50 SuspendedBy: install.SuspendedBy,
51 SuspendedAt: install.SuspendedAt,
52 }
53 orgInstalls = append(orgInstalls, in)
54 }
55 return orgInstalls
56}
57
58func WebhooksAggregator(hooks []*github.Hook) []types.Webhook {
59 var webhooks []types.Webhook

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected