1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-13 08:15:14 +08:00

Ignore empty repo for CreateRepository in action notifier ()

Fix 
This commit is contained in:
yp05327
2024-02-26 18:38:15 +09:00
committed by GitHub
parent f8974c7725
commit 403766cd81

@ -117,6 +117,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)