| 411 | } |
| 412 | |
| 413 | func (s *Service) processGithubInstallationEvent(_ context.Context, event *github.InstallationEvent) error { |
| 414 | switch event.GetAction() { |
| 415 | case "created", "unsuspend", "new_permissions_accepted": |
| 416 | // TODO: Should we do anything for unsuspend? |
| 417 | case "suspend", "deleted": |
| 418 | // no handling as of now |
| 419 | // previously we were deleting the projects |
| 420 | // but that means if there is an accidental suspend we delete all projects |
| 421 | } |
| 422 | return nil |
| 423 | } |
| 424 | |
| 425 | func (s *Service) processGithubInstallationRepositoriesEvent(_ context.Context, event *github.InstallationRepositoriesEvent) error { |
| 426 | // We can access event.RepositoriesAdded and event.RepositoriesRemoved |