diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go index 26c86275e9..15fd419e87 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -114,6 +114,9 @@ func notify(ctx context.Context, input *notifyInput) error { log.Debug("ignore executing %v for event %v whose doer is %v", getMethod(ctx), input.Event, input.Doer.Name) return nil } + if input.Repo.IsEmpty { + return nil + } if unit_model.TypeActions.UnitGlobalDisabled() { return nil }