Skip to content

Commit 3f3335a

Browse files
authored
1 parent f147795 commit 3f3335a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/actions/notifier_helper.go

+4
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ func handleSchedules(
486486

487487
// DetectAndHandleSchedules detects the schedule workflows on the default branch and create schedule tasks
488488
func DetectAndHandleSchedules(ctx context.Context, repo *repo_model.Repository) error {
489+
if repo.IsEmpty {
490+
return nil
491+
}
492+
489493
gitRepo, err := gitrepo.OpenRepository(context.Background(), repo)
490494
if err != nil {
491495
return fmt.Errorf("git.OpenRepository: %w", err)

0 commit comments

Comments
 (0)