Commit 81560ab2 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix build triggers URL and slack notifications

parent d0019456
...@@ -13,11 +13,11 @@ module Ci ...@@ -13,11 +13,11 @@ module Ci
end end
def url_helpers def url_helpers
@url_helpers ||= Ci::Base.new @url_helpers ||= Base.new
end end
def self.method_missing(method, *args, &block) def self.method_missing(method, *args, &block)
@url_helpers ||= Ci::Base.new @url_helpers ||= Base.new
if @url_helpers.respond_to?(method) if @url_helpers.respond_to?(method)
@url_helpers.send(method, *args, &block) @url_helpers.send(method, *args, &block)
......
module Ci module Ci
module TriggersHelper module TriggersHelper
def build_trigger_url(project_id, ref_name) def ci_build_trigger_url(project_id, ref_name)
"#{Settings.gitlab_ci.url}/ci/api/v1/projects/#{project_id}/refs/#{ref_name}/trigger" "#{Settings.gitlab_ci.url}/ci/api/v1/projects/#{project_id}/refs/#{ref_name}/trigger"
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment