Skip to content

Commit c758a8a

Browse files
GiteaBotyp05327
andauthored
Ignore empty repo for CreateRepository in action notifier (#29416) (#29424)
Backport #29416 by @yp05327 Fix #29415 Co-authored-by: yp05327 <[email protected]>
1 parent 83327e0 commit c758a8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/actions/notifier_helper.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ func notify(ctx context.Context, input *notifyInput) error {
113113
log.Debug("ignore executing %v for event %v whose doer is %v", getMethod(ctx), input.Event, input.Doer.Name)
114114
return nil
115115
}
116+
if input.Repo.IsEmpty {
117+
return nil
118+
}
116119
if unit_model.TypeActions.UnitGlobalDisabled() {
117120
if err := actions_model.CleanRepoScheduleTasks(ctx, input.Repo); err != nil {
118121
log.Error("CleanRepoScheduleTasks: %v", err)

0 commit comments

Comments
 (0)