Method
processGithubInstallationRepositoriesEvent
(_ context.Context, event *github.InstallationRepositoriesEvent)
Source from the content-addressed store, hash-verified
| 423 | } |
| 424 | |
| 425 | func (s *Service) processGithubInstallationRepositoriesEvent(_ context.Context, event *github.InstallationRepositoriesEvent) error { |
| 426 | // We can access event.RepositoriesAdded and event.RepositoriesRemoved |
| 427 | switch event.GetAction() { |
| 428 | case "added": |
| 429 | // no handling as of now |
| 430 | case "removed": |
| 431 | // no handling as of now |
| 432 | // previously we were deleting the project for the repo |
| 433 | // but that means if there is an accidental removal we delete all projects |
| 434 | } |
| 435 | return nil |
| 436 | } |
| 437 | |
| 438 | func quotaManagedRepos(org *database.Organization) int { |
| 439 | if org.QuotaProjects >= 0 { |
Tested by
no test coverage detected