We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DetectAndHandleSchedules
1 parent f147795 commit 3f3335aCopy full SHA for 3f3335a
services/actions/notifier_helper.go
@@ -486,6 +486,10 @@ func handleSchedules(
486
487
// DetectAndHandleSchedules detects the schedule workflows on the default branch and create schedule tasks
488
func DetectAndHandleSchedules(ctx context.Context, repo *repo_model.Repository) error {
489
+ if repo.IsEmpty {
490
+ return nil
491
+ }
492
+
493
gitRepo, err := gitrepo.OpenRepository(context.Background(), repo)
494
if err != nil {
495
return fmt.Errorf("git.OpenRepository: %w", err)
0 commit comments