Skip to content

Commit

Permalink
Ignore empty repo for CreateRepository in action notifier (go-gitea#2…
Browse files Browse the repository at this point in the history
…9416) (go-gitea#29424)

Backport go-gitea#29416 by @yp05327

Fix go-gitea#29415

Co-authored-by: yp05327 <576951401@qq.com>
(cherry picked from commit c758a8a)
  • Loading branch information
GiteaBot authored and earl-warren committed Mar 10, 2024
1 parent 84449e9 commit 47409b2
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 @@ -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
}
Expand Down

0 comments on commit 47409b2

Please # to comment.