From 12194447ee2bab5922271c882ddf121cd089e3db Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Tue, 16 Aug 2016 23:00:09 +0100 Subject: [PATCH] GitHub push suffix (#332) * Fix api/push-github Fixes #309 * Don't require .git suffix on jobset inputs --- 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 5f617eb3..478f8884 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%" ] ] }); }