mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-31 03:14:17 +09:00
fix: show blocked jobs
This commit is contained in:
1 parent
dc7e64041a
commit
465c348922
4 files changed
+6
-4
No files matched your search
+2
-1
@@ -166,8 +166,9 @@ func InsertRun(run *Run, jobs []*jobparser.SingleWorkflow) error {
|
||||
runJobs := make([]*RunJob, 0, len(jobs))
|
||||
for _, v := range jobs {
|
||||
id, job := v.Job()
|
||||
payload, _ := v.Marshal()
|
||||
needs := job.Needs()
|
||||
job.EraseNeeds()
|
||||
payload, _ := v.Marshal()
|
||||
status := StatusWaiting
|
||||
if len(needs) > 0 {
|
||||
status = StatusBlocked
|
||||
|
||||
Reference in new issue
Block a user