forked from lix-project/hydra
GitHub push suffix (#332)
* Fix api/push-github Fixes #309 * Don't require .git suffix on jobset inputs
This commit is contained in:
parent
03e8538746
commit
12194447ee
|
@ -254,7 +254,7 @@ sub push_github : Chained('api') PathPart('push-github') Args(0) {
|
||||||
triggerJobset($self, $c, $_) foreach $c->model('DB::Jobsets')->search(
|
triggerJobset($self, $c, $_) 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.git%" ] ]
|
, where => \ [ 'exists (select 1 from JobsetInputAlts where project = me.project and jobset = me.name and value like ?)', [ 'value', "%github.com%$owner/$repo%" ] ]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue