From 02d56dda582c826134e83d42b1c878f9697ab1f5 Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Tue, 21 Jun 2016 16:34:54 +0100 Subject: [PATCH] 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'. --- 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..162d606d 100644 --- a/src/lib/Hydra/Controller/API.pm +++ b/src/lib/Hydra/Controller/API.pm @@ -254,7 +254,7 @@ sub push_github : Chained('api') PathPart('push-github') Args(0) { triggerJobset($self, $c, $_) foreach $c->model('DB::Jobsets')->search( { 'project.enabled' => 1, 'me.enabled' => 1 }, { 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%" ] ] }); }