Backport #29416 by @yp05327 Fix #29415 Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commit c758a8afba85fe1847f4d1f5441f6c62b37517ae)
This commit is contained in:
parent
84449e9288
commit
47409b2fa0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue