Trigger ssh like urls from github pushes

URLs like "git@github.com:owner/repo.git

This commit removed the need for a forward slash between 'github.com' and
'owner'.
This commit is contained in:
Joe Hermaszewski 2016-06-21 16:34:54 +01:00
parent 6bcbabb4df
commit 02d56dda58

View file

@ -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.git%" ] ]
}); });
} }