Allow push-github endpoint to also trigger flakes
This commit is contained in:
parent
bde8d81876
commit
1b3000e132
|
@ -265,7 +265,7 @@ sub push_github : Chained('api') PathPart('push-github') Args(0) {
|
||||||
triggerJobset($self, $c, $_, 0) foreach $c->model('DB::Jobsets')->search(
|
triggerJobset($self, $c, $_, 0) foreach $c->model('DB::Jobsets')->search(
|
||||||
{ 'project.enabled' => 1, 'me.enabled' => 1 },
|
{ 'project.enabled' => 1, 'me.enabled' => 1 },
|
||||||
{ join => 'project'
|
{ join => 'project'
|
||||||
, where => \ [ 'exists (select 1 from JobsetInputAlts where project = me.project and jobset = me.name and value like ?)', [ 'value', "%github.com%$owner/$repo%" ] ]
|
, where => \ [ 'me.flake like ? or exists (select 1 from JobsetInputAlts where project = me.project and jobset = me.name and value like ?)', [ 'flake', "%github%$owner/$repo%"], [ 'value', "%github.com%$owner/$repo%" ] ]
|
||||||
});
|
});
|
||||||
$c->response->body("");
|
$c->response->body("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue