Skip to content

Commit

Permalink
Ignore empty repo for CreateRepository in action notifier (#29416) (#…
Browse files Browse the repository at this point in the history
…29424)

Backport #29416 by @yp05327

Fix #29415

Co-authored-by: yp05327 <[email protected]>
  • Loading branch information
GiteaBot and yp05327 committed Feb 26, 2024
1 parent 83327e0 commit c758a8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/actions/notifier_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c758a8a

Please sign in to comment.