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

Method processGithubInstallationRepositoriesEvent

admin/github.go:425–436  ·  view source on GitHub ↗
(_ context.Context, event *github.InstallationRepositoriesEvent)

Source from the content-addressed store, hash-verified

423}
424
425func (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
438func quotaManagedRepos(org *database.Organization) int {
439 if org.QuotaProjects >= 0 {

Callers 1

ProcessGithubEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected