mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 14:54:07 +01:00
Ignore empty repo for CreateRepository in action notifier (#29416)
Fix #29415
This commit is contained in:
parent
f8974c7725
commit
403766cd81
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)
|
log.Debug("ignore executing %v for event %v whose doer is %v", getMethod(ctx), input.Event, input.Doer.Name)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if input.Repo.IsEmpty {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if unit_model.TypeActions.UnitGlobalDisabled() {
|
if unit_model.TypeActions.UnitGlobalDisabled() {
|
||||||
if err := actions_model.CleanRepoScheduleTasks(ctx, input.Repo); err != nil {
|
if err := actions_model.CleanRepoScheduleTasks(ctx, input.Repo); err != nil {
|
||||||
log.Error("CleanRepoScheduleTasks: %v", err)
|
log.Error("CleanRepoScheduleTasks: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue