Selaa lähdekoodia

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

Backport #29416 by @yp05327

Fix #29415

Co-authored-by: yp05327 <576951401@qq.com>
tags/v1.21.8
Giteabot 3 kuukautta sitten
vanhempi
commit
c758a8afba
No account linked to committer's email address
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3
    0
      services/actions/notifier_helper.go

+ 3
- 0
services/actions/notifier_helper.go Näytä tiedosto

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

Loading…
Peruuta
Tallenna