From eb9aba0ff45b3d71f548cd81e9f31da12b60844b Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Tue, 14 Jun 2016 10:36:43 +0100 Subject: [PATCH] Fix api/push-github Fixes #309 --- src/lib/Hydra/Controller/API.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/API.pm b/src/lib/Hydra/Controller/API.pm index 07311f7d..67b4a64c 100644 --- a/src/lib/Hydra/Controller/API.pm +++ b/src/lib/Hydra/Controller/API.pm @@ -246,7 +246,7 @@ sub push_github : Chained('api') PathPart('push-github') Args(0) { $c->{stash}->{json}->{jobsetsTriggered} = []; - my $in = decode_json $c->req->body_params->{payload}; + my $in = $c->request->{data}; my $owner = $in->{repository}->{owner}->{name} or die; my $repo = $in->{repository}->{name} or die; print STDERR "got push from GitHub repository $owner/$repo\n";