(event common.ChangePayload)
| 356 | } |
| 357 | |
| 358 | func (w *Worker) handleRepositoryEvent(event common.ChangePayload) { |
| 359 | repo, ok := event.Payload.(params.Repository) |
| 360 | if !ok { |
| 361 | slog.DebugContext(w.ctx, "invalid payload type for repository event", "payload", event.Payload) |
| 362 | return |
| 363 | } |
| 364 | w.handleEntityEvent(repo, event.Operation) |
| 365 | } |
| 366 | |
| 367 | func (w *Worker) handleOrgEvent(event common.ChangePayload) { |
| 368 | org, ok := event.Payload.(params.Organization) |
no test coverage detected