Skip to content

Commit 520e732

Browse files
lunnyChristopherHX
andauthored
Update models/actions/run_job_list.go
Co-authored-by: ChristopherHX <[email protected]>
1 parent 470d05e commit 520e732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/actions/run_job_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (jobs ActionJobList) GetRunIDs() []int64 {
2424

2525
func (jobs ActionJobList) LoadRepos(ctx context.Context) error {
2626
repoIDs := container.FilterSlice(jobs, func(j *ActionRunJob) (int64, bool) {
27-
return j.RepoID, j.RepoID != 0
27+
return j.RepoID, j.RepoID != 0 && j.Repo == nil
2828
})
2929
if len(repoIDs) == 0 {
3030
return nil

0 commit comments

Comments
 (0)