Skip to content

Commit 408576d

Browse files
yp05327GiteaBot
authored andcommitted
Ignore empty repo for CreateRepository in action notifier (go-gitea#29416)
Fix go-gitea#29415
1 parent 83327e0 commit 408576d

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)