gitlab-org--gitlab-foss/app/helpers/triggers_helper.rb
Dmitriy Zaporozhets 3d9a7cdb4b
Refactor CI helpers
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-09-29 16:26:40 +02:00

5 lines
171 B
Ruby

module TriggersHelper
def ci_build_trigger_url(project_id, ref_name)
"#{Settings.gitlab_ci.url}/ci/api/v1/projects/#{project_id}/refs/#{ref_name}/trigger"
end
end