Ignore empty repo for CreateRepository in action notifier (#29416)

Fix #29415
pull/29405/head^2
yp05327 9 months ago committed by GitHub
parent f8974c7725
commit 403766cd81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      services/actions/notifier_helper.go

@ -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)

Loading…
Cancel
Save