( installs *github.OrganizationInstallations, )
| 30 | } |
| 31 | |
| 32 | func 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 | |
| 58 | func WebhooksAggregator(hooks []*github.Hook) []types.Webhook { |
| 59 | var webhooks []types.Webhook |
nothing calls this directly
no outgoing calls
no test coverage detected