diff options
author | iximeow <me@iximeow.net> | 2023-07-01 16:17:23 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-07-01 16:17:23 -0700 |
commit | b8ec38d75ba1b84bb36e8dfbe2613848877e5d22 (patch) | |
tree | eed5a8697dbc7c472ad7cff3e0af65d860c8496c /src | |
parent | 812181aaef68f788108e03471f520830eeabd612 (diff) |
fix client sending wrong task status name
Diffstat (limited to 'src')
-rw-r--r-- | src/ci_runner.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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(), |