From b8ec38d75ba1b84bb36e8dfbe2613848877e5d22 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 1 Jul 2023 16:17:23 -0700 Subject: fix client sending wrong task status name --- src/ci_runner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ci_runner.rs b/src/ci_runner.rs index 330490c..193c471 100644 --- a/src/ci_runner.rs +++ b/src/ci_runner.rs @@ -238,7 +238,7 @@ impl RunningJob { if let Err(e) = checkout_res { let status = "bad_ref"; let status = serde_json::json!({ - "kind": "job_status", + "kind": "task_status", "state": "finished", "result": status, }); @@ -286,7 +286,7 @@ impl RunningJob { Ok(status) => { eprintln!("[+] job success!"); let status = serde_json::json!({ - "kind": "job_status", + "kind": "task_status", "state": "finished", "result": status }); @@ -301,7 +301,7 @@ impl RunningJob { eprintln!("[-] job error: {}", status); let res = ctx.lock().unwrap().client.send(serde_json::json!({ - "kind": "job_status", + "kind": "task_status", "state": "interrupted", "result": status, "desc": lua_err.to_string(), -- cgit v1.1