Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-14 17:10:35 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-17 23:34:23 +0300
commit53271b486d296fae2e290d6948a05aeb47dbea89 (patch)
tree8ee12e07be37d1bf7251d570996a2575c93538b9 /app/helpers/triggers_helper.rb
parent4762198959fbc2bc22981749313955b65c6d6026 (diff)
Make chat authorization to work [ci skip]
Diffstat (limited to 'app/helpers/triggers_helper.rb')
-rw-r--r--app/helpers/triggers_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/triggers_helper.rb b/app/helpers/triggers_helper.rb
index c41181bab3d..b0135ea2e95 100644
--- a/app/helpers/triggers_helper.rb
+++ b/app/helpers/triggers_helper.rb
@@ -6,4 +6,8 @@ module TriggersHelper
"#{Settings.gitlab.url}/api/v3/projects/#{project_id}/ref/#{ref}/trigger/builds"
end
end
+
+ def service_trigger_url(service)
+ "#{Settings.gitlab.url}/api/v3/projects/#{service.project_id}/services/#{service.to_param}/trigger"
+ end
end