api: fix github webhook
This commit is contained in:
parent
4cda1c2abd
commit
3e7b407bfe
|
@ -273,7 +273,7 @@ sub push_github : Chained('api') PathPart('push-github') Args(0) {
|
||||||
$c->{stash}->{json}->{jobsetsTriggered} = [];
|
$c->{stash}->{json}->{jobsetsTriggered} = [];
|
||||||
|
|
||||||
my $in = $c->request->{data};
|
my $in = $c->request->{data};
|
||||||
my $owner = $in->{repository}->{owner}->{name} or die;
|
my $owner = $in->{repository}->{owner}->{login} or die;
|
||||||
my $repo = $in->{repository}->{name} or die;
|
my $repo = $in->{repository}->{name} or die;
|
||||||
print STDERR "got push from GitHub repository $owner/$repo\n";
|
print STDERR "got push from GitHub repository $owner/$repo\n";
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ subtest "/api/push-github" => sub {
|
||||||
"Content" => encode_json({
|
"Content" => encode_json({
|
||||||
repository => {
|
repository => {
|
||||||
owner => {
|
owner => {
|
||||||
name => "OWNER",
|
login => "OWNER",
|
||||||
},
|
},
|
||||||
name => "LEGACY-REPO",
|
name => "LEGACY-REPO",
|
||||||
}
|
}
|
||||||
|
@ -198,7 +198,7 @@ subtest "/api/push-github" => sub {
|
||||||
"Content" => encode_json({
|
"Content" => encode_json({
|
||||||
repository => {
|
repository => {
|
||||||
owner => {
|
owner => {
|
||||||
name => "OWNER",
|
login => "OWNER",
|
||||||
},
|
},
|
||||||
name => "FLAKE-REPO",
|
name => "FLAKE-REPO",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue