summaryrefslogtreecommitdiffstats
path: root/services/actions
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-02-26 18:38:15 +0900
committerGitHub <noreply@github.com>2024-02-26 09:38:15 +0000
commit403766cd81697288804fd218d68c458c6aa5b73d (patch)
tree9eadedd39a87c82c66019f082076aa1c4e995ca7 /services/actions
parentf8974c772560e2c957e5e218bfb348d1ee6b9448 (diff)
downloadgitea-403766cd81697288804fd218d68c458c6aa5b73d.tar.gz
gitea-403766cd81697288804fd218d68c458c6aa5b73d.zip
Ignore empty repo for CreateRepository in action notifier (#29416)
Fix #29415
Diffstat (limited to 'services/actions')
-rw-r--r--services/actions/notifier_helper.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go
index c20335af6f..b248af1d01 100644
--- a/services/actions/notifier_helper.go
+++ b/services/actions/notifier_helper.go
@@ -117,6 +117,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)