Skip to content

Commit a18156d

Browse files
committed
fix error
1 parent 72a98fb commit a18156d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/models/scheduler.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ func GetCheckRunConclusionForJob(job *DiggerJob) (string, error) {
258258
case orchestrator_scheduler.DiggerJobFailed:
259259
return "failure", nil
260260
}
261-
slog.Error("Unknown job status in GetCheckRunConclusionForJob - this will cause GitHub API 422 error",
262-
"jobId", job.DiggerJobID,
263-
"jobStatus", job.Status,
264-
"jobStatusInt", int(job.Status),
265-
"validStatuses", []string{"created", "triggered", "started", "queued_for_run", "succeeded", "failed"})
261+
slog.Error("Unknown job status in GetCheckRunConclusionForJob - this will cause GitHub API 422 error",
262+
"jobId", job.DiggerJobID,
263+
"jobStatus", job.Status,
264+
"jobStatusInt", int(job.Status),
265+
"validStatuses", []string{"created", "triggered", "started", "queued_for_run", "succeeded", "failed"})
266266
return "", fmt.Errorf("unknown job status: %v", job.Status)
267267
}

0 commit comments

Comments
 (0)