Skip to content

Commit 403766c

Browse files
authored
Ignore empty repo for CreateRepository in action notifier (#29416)
Fix #29415
1 parent f8974c7 commit 403766c

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
@@ -117,6 +117,9 @@ func notify(ctx context.Context, input *notifyInput) error {
117117
log.Debug("ignore executing %v for event %v whose doer is %v", getMethod(ctx), input.Event, input.Doer.Name)
118118
return nil
119119
}
120+
if input.Repo.IsEmpty {
121+
return nil
122+
}
120123
if unit_model.TypeActions.UnitGlobalDisabled() {
121124
if err := actions_model.CleanRepoScheduleTasks(ctx, input.Repo); err != nil {
122125
log.Error("CleanRepoScheduleTasks: %v", err)

0 commit comments

Comments
 (0)