mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 19:23:09 +00:00
Ignore empty repo for CreateRepository in action notifier (#29416)
Fix #29415 (cherry picked from commit 403766cd81697288804fd218d68c458c6aa5b73d)
This commit is contained in:
parent
480c61432a
commit
76070599f9
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue