From c758a8afba85fe1847f4d1f5441f6c62b37517ae Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 26 Feb 2024 17:59:12 +0800 Subject: [PATCH] Ignore empty repo for CreateRepository in action notifier (#29416) (#29424) Backport #29416 by @yp05327 Fix #29415 Co-authored-by: yp05327 <576951401@qq.com> --- services/actions/notifier_helper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go index 9408d48f25..fe618d5d08 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -113,6 +113,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() { if err := actions_model.CleanRepoScheduleTasks(ctx, input.Repo); err != nil { log.Error("CleanRepoScheduleTasks: %v", err)