encode_json not json_encode

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-16 08:41:10 +01:00
parent bea55284d7
commit b5520c8067
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -81,7 +81,7 @@ index 426c93f5..9fe83c2a 100644
}
}
diff --git a/src/lib/Hydra/Plugin/GithubStatus.pm b/src/lib/Hydra/Plugin/GithubStatus.pm
index fe791533..456029f1 100644
index fe791533..767b64b8 100644
--- a/src/lib/Hydra/Plugin/GithubStatus.pm
+++ b/src/lib/Hydra/Plugin/GithubStatus.pm
@@ -92,6 +92,26 @@ sub common {
@ -91,7 +91,7 @@ index fe791533..456029f1 100644
+
+ if ($finished and $build->buildstatus == 0) {
+ # Try to start the deployment
+ my $body = json_encode({
+ my $body = encode_json({
+ ref => $rev,
+ inputs => {
+ job_name => $jobName