triggers_helper.rb 275 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 module TriggersHelper def builds_trigger_url(project_id, ref: nil) if ref.nil? "#{Settings.gitlab.url}/api/v3/projects/#{project_id}/trigger/builds" else "#{Settings.gitlab.url}/api/v3/projects/#{project_id}/ref/#{ref}/trigger/builds" end end end