MCPcopy Index your code
hub / github.com/rilldata/rill / processGithubInstallationEvent

Method processGithubInstallationEvent

admin/github.go:413–423  ·  view source on GitHub ↗
(_ context.Context, event *github.InstallationEvent)

Source from the content-addressed store, hash-verified

411}
412
413func (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
425func (s *Service) processGithubInstallationRepositoriesEvent(_ context.Context, event *github.InstallationRepositoriesEvent) error {
426 // We can access event.RepositoriesAdded and event.RepositoriesRemoved

Callers 1

ProcessGithubEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected